diff options
Diffstat (limited to 'source3/auth')
-rw-r--r-- | source3/auth/auth_util.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index d02ad66200..43ae5c1af6 100644 --- 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; |