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 /ntlmsubr.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 'ntlmsubr.c')
-rw-r--r-- | ntlmsubr.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -44,7 +44,7 @@ int ntlm_helper(int sock, struct query *ctl, const char *proto) dumpSmbNtlmAuthRequest(stdout, &request); memset(msgbuf,0,sizeof msgbuf); - to64frombits (msgbuf, &request, SmbLength(&request)); + to64frombits (msgbuf, &request, SmbLength(&request), sizeof msgbuf); if (outlevel >= O_MONITOR) report(stdout, "%s> %s\n", proto, msgbuf); @@ -95,7 +95,7 @@ int ntlm_helper(int sock, struct query *ctl, const char *proto) dumpSmbNtlmAuthResponse(stdout, &response); memset(msgbuf,0,sizeof msgbuf); - to64frombits (msgbuf, &response, SmbLength(&response)); + to64frombits (msgbuf, &response, SmbLength(&response), sizeof msgbuf); if (outlevel >= O_MONITOR) report(stdout, "%s> %s\n", proto, msgbuf); |