git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53a1ed9
)
s3:check_sam_security: untangle assignment from statement
author
Michael Adam
<obnox@samba.org>
Wed, 30 Dec 2009 11:46:22 +0000
(12:46 +0100)
committer
Michael Adam
<obnox@samba.org>
Thu, 7 Jan 2010 10:07:55 +0000
(11:07 +0100)
Michael
source3/auth/auth_sam.c
patch
|
blob
|
history
diff --git
a/source3/auth/auth_sam.c
b/source3/auth/auth_sam.c
index f0500b3611728b8bbfed91b20222e35933902d6d..942f9ca6c4318e0b3408da2993ab3be8ebcf0e58 100644
(file)
--- a/
source3/auth/auth_sam.c
+++ b/
source3/auth/auth_sam.c
@@
-305,7
+305,8
@@
static NTSTATUS check_sam_security(const struct auth_context *auth_context,
/* the returned struct gets kept on the server_info, by means
of a steal further down */
- if ( !(sampass = samu_new( mem_ctx )) ) {
+ sampass = samu_new(mem_ctx);
+ if (sampass == NULL) {
return NT_STATUS_NO_MEMORY;
}