From: wessels <> Date: Wed, 9 May 2007 21:26:12 +0000 (+0000) Subject: Fixed NULL pointer passed to xstrdup in AuthUser::username(). X-Git-Tag: SQUID_3_0_PRE6~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1ee467756e218c1c1e6d4714325437fee9b975b9;p=thirdparty%2Fsquid.git Fixed NULL pointer passed to xstrdup in AuthUser::username(). --- diff --git a/src/AuthUser.cci b/src/AuthUser.cci index 53e89b38e8..23da82652d 100644 --- a/src/AuthUser.cci +++ b/src/AuthUser.cci @@ -1,6 +1,6 @@ /* - * $Id: AuthUser.cci,v 1.2 2007/05/09 08:26:57 wessels Exp $ + * $Id: AuthUser.cci,v 1.3 2007/05/09 15:26:12 wessels Exp $ * * DEBUG: section 29 Authenticator * AUTHOR: Robert Collins @@ -44,7 +44,7 @@ void AuthUser::username(char const*aString) { assert (!username() || !aString); - username_ = xstrdup(aString); + username_ = aString ? xstrdup(aString) : NULL; } void