]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Add debugs for NTLM domain decode errors
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 6 Feb 2012 05:36:30 +0000 (18:36 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 6 Feb 2012 05:36:30 +0000 (18:36 +1300)
lib/ntlmauth/ntlmauth.cc

index b29b85824e7325da2a4b90caac480fba47e45c5c..a93d385d1e195daaf7fdbb1b7b5baf3e208f1728 100644 (file)
@@ -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) {