diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-10-03 11:49:04 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-10-03 11:49:04 +0000 |
commit | 1405a0444d316791af6a473324be754789fb98a1 (patch) | |
tree | c617c845fd630dcdef6d7a5c607b6ce13f20ed3c /gssapi.c | |
parent | b5abbf75ceef070108e4e82218953e74899d7e2b (diff) | |
download | fetchmail-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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, |