summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-12-30 12:46:22 +0100
committerMichael Adam <obnox@samba.org>2010-01-07 11:07:55 +0100
commitb5fcb34d6cd20c852208d2b8b785b2870c6d65db (patch)
treee0058944873e3f1c021b0bb63901bb581693d696
parent53a1ed9b6caa7b8ea2c5b4f1cae6faba19e09708 (diff)
downloadsamba-b5fcb34d6cd20c852208d2b8b785b2870c6d65db.tar.gz
samba-b5fcb34d6cd20c852208d2b8b785b2870c6d65db.tar.bz2
samba-b5fcb34d6cd20c852208d2b8b785b2870c6d65db.zip
s3:check_sam_security: untangle assignment from statement
Michael
-rw-r--r--source3/auth/auth_sam.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/auth/auth_sam.c b/source3/auth/auth_sam.c
index f0500b3611..942f9ca6c4 100644
--- 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;
}