git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21eeddb
)
r16150: Fix possible NULL dereference found by Klocwork ID # 17
author
Volker Lendecke
<vlendec@samba.org>
Mon, 12 Jun 2006 11:03:49 +0000
(11:03 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 16:17:22 +0000
(11:17 -0500)
(This used to be commit
3159bd3a4e3ad70c60fea4cacc892be9f1d71ab9
)
source3/auth/auth_util.c
patch
|
blob
|
history
diff --git
a/source3/auth/auth_util.c
b/source3/auth/auth_util.c
index d02ad6620041016d8b8dcd0b09300976cbddde28..43ae5c1af65b42595d257cd12ef3c1ae4b9a911e 100644
(file)
--- 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;