summaryrefslogtreecommitdiff
path: root/source3/auth/auth_util.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-06-12 11:03:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:17:22 -0500
commit780f121462b91c520c5a1bd13e7fcde288e1fad2 (patch)
treeafe0cbb8450c44614900d2ccf4345a9e524b241b /source3/auth/auth_util.c
parent21eeddb80df515d1b3969f42dc56b9c8e02db3ff (diff)
downloadsamba-780f121462b91c520c5a1bd13e7fcde288e1fad2.tar.gz
samba-780f121462b91c520c5a1bd13e7fcde288e1fad2.tar.bz2
samba-780f121462b91c520c5a1bd13e7fcde288e1fad2.zip
r16150: Fix possible NULL dereference found by Klocwork ID # 17
(This used to be commit 3159bd3a4e3ad70c60fea4cacc892be9f1d71ab9)
Diffstat (limited to 'source3/auth/auth_util.c')
-rw-r--r--source3/auth/auth_util.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index d02ad66200..43ae5c1af6 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -1243,10 +1243,9 @@ NTSTATUS make_server_info_pw(auth_serversupplied_info **server_info,
}
result = make_server_info(NULL);
-
- if (!NT_STATUS_IS_OK(status)) {
+ if (result == NULL) {
TALLOC_FREE(sampass);
- return status;
+ return NT_STATUS_NO_MEMORY;
}
result->sam_account = sampass;