diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2018-04-14 21:39:58 +0200 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2018-04-14 21:39:58 +0200 |
commit | 9deaf399553050b3b426e8a39d0ffd22430bf72d (patch) | |
tree | 9bf7de273c7a2936ff07a0da67b1cbec2aab72a5 /gssapi.c | |
parent | 3a36394465a4e6e3c64bb5b1255717df753bb4a9 (diff) | |
download | fetchmail-9deaf399553050b3b426e8a39d0ffd22430bf72d.tar.gz fetchmail-9deaf399553050b3b426e8a39d0ffd22430bf72d.tar.bz2 fetchmail-9deaf399553050b3b426e8a39d0ffd22430bf72d.zip |
In-depth fix for to64frombits() BASE64 encoder buffer sizing.
Diffstat (limited to 'gssapi.c')
-rw-r--r-- | gssapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -202,7 +202,7 @@ cancelfail: return result; return PS_AUTHFAIL; } - to64frombits(buf1, send_token.value, send_token.length); + to64frombits(buf1, send_token.value, send_token.length, sizeof buf1); gss_release_buffer(&min_stat, &send_token); suppress_tags = TRUE; @@ -286,7 +286,7 @@ cancelfail: report(stderr, GT_("GSSAPI send_token too large (%lu) while sending username.\n"), (unsigned long)send_token.length); goto cancelfail; } - to64frombits(buf1, send_token.value, send_token.length); + to64frombits(buf1, send_token.value, send_token.length, sizeof buf1); suppress_tags = TRUE; result = gen_transact(sock, "%s", buf1); |