aboutsummaryrefslogtreecommitdiffstats
path: root/ntlmsubr.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2018-04-14 21:39:58 +0200
committerMatthias Andree <matthias.andree@gmx.de>2018-04-14 21:39:58 +0200
commit9deaf399553050b3b426e8a39d0ffd22430bf72d (patch)
tree9bf7de273c7a2936ff07a0da67b1cbec2aab72a5 /ntlmsubr.c
parent3a36394465a4e6e3c64bb5b1255717df753bb4a9 (diff)
downloadfetchmail-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ntlmsubr.c b/ntlmsubr.c
index 057c1b91..cf305ef0 100644
--- a/ntlmsubr.c
+++ b/ntlmsubr.c
@@ -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);