summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-03-07 20:14:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:11:03 -0500
commit5f76ee419e98bb113eead87eac9a1d7fee80e82f (patch)
tree45b251e606613f092fccb700cb480c337749c8c9 /source3/auth
parent33c9fbab1278302dde1b0daf7ce6ac3462dc930c (diff)
downloadsamba-5f76ee419e98bb113eead87eac9a1d7fee80e82f.tar.gz
samba-5f76ee419e98bb113eead87eac9a1d7fee80e82f.tar.bz2
samba-5f76ee419e98bb113eead87eac9a1d7fee80e82f.zip
r13981: Fix Coverity bug # 138
(This used to be commit 303067ba3bdf34ab501f0d99e386cfdb6ab10233)
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth_util.c2
1 files changed, 1 insertions, 1 deletions
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;
}