KK message response with exactly zero-length encrypted data component
will cause Squid fakeauth helper to crash.
Not expected in normal operation. But maybe seen with specially crafted
or rare mangled responses.
} else
SEND2("TT %s", data);
} else if (strncasecmp(buf, "KK ", 3) == 0) {
- if (!ntlmCheckHeader((ntlmhdr *) decoded, NTLM_AUTHENTICATE)) {
+ if(!decoded) {
+ SEND2("BH received KK with no data! user=%s", user);
+ }
+ else if (!ntlmCheckHeader((ntlmhdr *) decoded, NTLM_AUTHENTICATE)) {
if (!ntlmDecodeAuth((struct ntlm_authenticate *) decoded, user, 256)) {
lc(user);
if (strip_domain_enabled) {