From: wessels <> Date: Wed, 9 May 2007 14:14:09 +0000 (+0000) Subject: Fixed NULL pointer bug in new version of auth_ntlm.cc. X-Git-Tag: SQUID_3_0_PRE6~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3ad9fcbce7d0a698084df908d403a3e0f3864811;p=thirdparty%2Fsquid.git Fixed NULL pointer bug in new version of auth_ntlm.cc. Don't create a local 'ntlm_user' variable and set it to NULL. --- diff --git a/src/auth/ntlm/auth_ntlm.cc b/src/auth/ntlm/auth_ntlm.cc index 313804b2c0..628c5a673d 100644 --- a/src/auth/ntlm/auth_ntlm.cc +++ b/src/auth/ntlm/auth_ntlm.cc @@ -1,6 +1,6 @@ /* - * $Id: auth_ntlm.cc,v 1.66 2007/05/09 08:07:23 wessels Exp $ + * $Id: auth_ntlm.cc,v 1.67 2007/05/09 08:14:09 wessels Exp $ * * DEBUG: section 29 NTLM Authenticator * AUTHOR: Robert Collins, Henrik Nordstrom, Francesco Chemolli @@ -401,7 +401,6 @@ authenticateNTLMHandleReply(void *data, void *lastserver, char *reply) * string */ auth_user_hash_pointer *usernamehash = static_cast(hash_lookup(proxy_auth_username_cache, ntlm_user->username())); auth_user_t *local_auth_user = ntlm_request->user(); - ntlm_user_t *ntlm_user = NULL;; while (usernamehash && (usernamehash->user()->auth_type != AUTH_NTLM || strcmp(usernamehash->user()->username(), ntlm_user->username()) != 0)) usernamehash = static_cast(usernamehash->next); if (usernamehash) {