From 5f76ee419e98bb113eead87eac9a1d7fee80e82f Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 7 Mar 2006 20:14:47 +0000 Subject: r13981: Fix Coverity bug # 138 (This used to be commit 303067ba3bdf34ab501f0d99e386cfdb6ab10233) --- source3/auth/auth_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/auth') diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index 1f853e5eb9..065e9d1899 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -76,7 +76,7 @@ static NTSTATUS make_user_info(auth_usersupplied_info **user_info, DEBUG(5,("attempting to make a user_info for %s (%s)\n", internal_username, smb_name)); *user_info = SMB_MALLOC_P(auth_usersupplied_info); - if (!user_info) { + if (*user_info == NULL) { DEBUG(0,("malloc failed for user_info (size %lu)\n", (unsigned long)sizeof(*user_info))); return NT_STATUS_NO_MEMORY; } -- cgit