that dereferences NULL credentials.
Added an assert to check for the condition in real-use.
Possibly need to add a default case to the switch on line 360.
ntlmhdr *fast_header;
char buf[BUFFER_SIZE];
const char *ch;
- char *ch2, *decoded, *cred;
+ char *ch2, *decoded, *cred = NULL;
int plen;
if (fgets(buf, BUFFER_SIZE, stdin) == NULL) {
return;
}
}
+ assert(cred != NULL);
lc(cred); /* let's lowercase them for our convenience */
SEND2("AF %s", cred);
return;