diff options
author | Günther Deschner <gd@samba.org> | 2015-09-26 02:20:50 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2016-03-17 20:43:17 +0100 |
commit | c06058a99be4cf3ad3431dc263d4595ffc226fcf (patch) | |
tree | 02da825beda643b8e4df92c578e7a0d23a74d381 /source3/auth | |
parent | fe93a09889a854d7c93f9b349d5794bdbb9403ba (diff) | |
download | samba-c06058a99be4cf3ad3431dc263d4595ffc226fcf.tar.gz |
s3-auth: check for return code of cli_credentials_set_machine_account().
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Mar 17 20:43:19 CET 2016 on sn-devel-144
Diffstat (limited to 'source3/auth')
-rw-r--r-- | source3/auth/auth_samba4.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/auth/auth_samba4.c b/source3/auth/auth_samba4.c index e68c702e335..8ea05c6bcd4 100644 --- a/source3/auth/auth_samba4.c +++ b/source3/auth/auth_samba4.c @@ -252,8 +252,8 @@ static NTSTATUS prepare_gensec(const struct auth_context *auth_context, status = cli_credentials_set_machine_account(server_credentials, lp_ctx); if (!NT_STATUS_IS_OK(status)) { DEBUG(10, ("Failed to obtain server credentials, perhaps a standalone server?: %s\n", nt_errstr(status))); - talloc_free(server_credentials); - server_credentials = NULL; + TALLOC_FREE(frame); + return status; } status = samba_server_gensec_start(mem_ctx, |