aboutsummaryrefslogtreecommitdiffstats
path: root/ntlm.h
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2012-08-14 20:47:22 +0200
committerMatthias Andree <matthias.andree@gmx.de>2012-08-14 20:56:47 +0200
commitc189f6a54f36f5b6f7734303db3cfc52311aab5f (patch)
treed477669cc743ee2186ee368005236fd272ac03a5 /ntlm.h
parent4bb8724c875163a426d7da7044b08582600367d1 (diff)
downloadfetchmail-c189f6a54f36f5b6f7734303db3cfc52311aab5f.tar.gz
fetchmail-c189f6a54f36f5b6f7734303db3cfc52311aab5f.tar.bz2
fetchmail-c189f6a54f36f5b6f7734303db3cfc52311aab5f.zip
Validate NTLM challenge fields.
This is to avoid reading from bad locations, and possibly conveying confidential data. Credit to Nico Golde.
Diffstat (limited to 'ntlm.h')
-rw-r--r--ntlm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ntlm.h b/ntlm.h
index 14696335..ad835201 100644
--- a/ntlm.h
+++ b/ntlm.h
@@ -32,8 +32,8 @@ uint32 msgType;
tSmbStrHeader uDomain;
uint32 flags;
uint8 challengeData[8];
-uint8 reserved[8];
-tSmbStrHeader emptyString;
+uint32 context[2];
+tSmbStrHeader targetInfo;
uint8 buffer[1024];
uint32 bufIndex;
}tSmbNtlmAuthChallenge;