s3:check_sam_security: untangle assignment from statement
authorMichael Adam <obnox@samba.org>
Wed, 30 Dec 2009 11:46:22 +0000 (12:46 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 7 Jan 2010 10:07:55 +0000 (11:07 +0100)
Michael

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;
        }