s3:check_sam_security: untangle assignment from statement
authorMichael Adam <obnox@samba.org>
Wed, 30 Dec 2009 11:46:22 +0000 (12:46 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 25 Jan 2010 11:49:22 +0000 (12:49 +0100)
Michael
(cherry picked from commit 232602ee2914851b0af851aa5dada3bf1c99dcff)

source3/auth/auth_sam.c

index f0500b3611728b8bbfed91b20222e35933902d6d..942f9ca6c4318e0b3408da2993ab3be8ebcf0e58 100644 (file)
@@ -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;
        }