From: Amos Jeffries Date: Mon, 6 Feb 2012 05:36:30 +0000 (+1300) Subject: Add debugs for NTLM domain decode errors X-Git-Tag: BumpSslServerFirst.take05~12^2~53 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ea205436677eb0dbac56540a403c18cb6d60aeda;p=thirdparty%2Fsquid.git Add debugs for NTLM domain decode errors --- diff --git a/lib/ntlmauth/ntlmauth.cc b/lib/ntlmauth/ntlmauth.cc index b29b85824e..a93d385d1e 100644 --- a/lib/ntlmauth/ntlmauth.cc +++ b/lib/ntlmauth/ntlmauth.cc @@ -274,8 +274,10 @@ ntlm_unpack_auth(const ntlm_authenticate *auth, char *user, char *domain, const domain[rv.l] = '\0'; debug("ntlm_unpack_auth: Domain '%s'.\n", domain); } - if (rv.l >= size) + if (rv.l >= size) { + debug("ntlm_unpack_auth: Domain length %d too big for %d byte packet.\n", rv.l , size); return NTLM_ERR_BLOB; + } rv = ntlm_fetch_string(&auth->hdr, size, &auth->user, auth->flags); if (rv.l > 0) {