aboutsummaryrefslogtreecommitdiffstats
path: root/gssapi.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-10-03 11:49:04 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-10-03 11:49:04 +0000
commit1405a0444d316791af6a473324be754789fb98a1 (patch)
treec617c845fd630dcdef6d7a5c607b6ce13f20ed3c /gssapi.c
parentb5abbf75ceef070108e4e82218953e74899d7e2b (diff)
downloadfetchmail-1405a0444d316791af6a473324be754789fb98a1.tar.gz
fetchmail-1405a0444d316791af6a473324be754789fb98a1.tar.bz2
fetchmail-1405a0444d316791af6a473324be754789fb98a1.zip
Security audit fix.
svn path=/trunk/; revision=3534
Diffstat (limited to 'gssapi.c')
-rw-r--r--gssapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gssapi.c b/gssapi.c
index b33e2f45..cfc16d27 100644
--- a/gssapi.c
+++ b/gssapi.c
@@ -119,7 +119,7 @@ int do_gssauth(int sock, char *command, char *hostname, char *username)
gss_release_name(&min_stat, &target_name);
return result;
}
- request_buf.length = from64tobits(buf2, buf1 + 2);
+ request_buf.length = from64tobits(buf2, buf1 + 2, sizeof(buf2));
request_buf.value = buf2;
sec_token = &request_buf;
}
@@ -131,7 +131,7 @@ int do_gssauth(int sock, char *command, char *hostname, char *username)
if (result = gen_recv(sock, buf1, sizeof buf1))
return result;
- request_buf.length = from64tobits(buf2, buf1 + 2);
+ request_buf.length = from64tobits(buf2, buf1 + 2, sizeof(buf2));
request_buf.value = buf2;
maj_stat = gss_unwrap(&min_stat, context,