diff options
author | Günther Deschner <gd@samba.org> | 2015-09-26 02:18:44 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2016-03-17 17:17:16 +0100 |
commit | fe93a09889a854d7c93f9b349d5794bdbb9403ba (patch) | |
tree | 866e329f561189a0e3b27a6441bca431f1491564 /source4/smb_server/smb | |
parent | 31f07d05629bc05ef99edc86ad2a3e95ec8599f1 (diff) | |
download | samba-fe93a09889a854d7c93f9b349d5794bdbb9403ba.tar.gz |
s4-smb_server: check for return code of cli_credentials_set_machine_account().
We keep anonymous server_credentials structure in order to let
the rpc.spoolss.notify start it's test server.
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Günther Deschner <gd@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/smb_server/smb')
-rw-r--r-- | source4/smb_server/smb/negprot.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/smb_server/smb/negprot.c b/source4/smb_server/smb/negprot.c index cdfa2b4046f..dfcc1a29bf2 100644 --- a/source4/smb_server/smb/negprot.c +++ b/source4/smb_server/smb/negprot.c @@ -387,8 +387,10 @@ static void reply_nt1(struct smbsrv_request *req, uint16_t choice) nt_status = cli_credentials_set_machine_account(server_credentials, req->smb_conn->lp_ctx); if (!NT_STATUS_IS_OK(nt_status)) { DEBUG(10, ("Failed to obtain server credentials, perhaps a standalone server?: %s\n", nt_errstr(nt_status))); - talloc_free(server_credentials); - server_credentials = NULL; + /* + * We keep the server_credentials as anonymous + * this is required for the spoolss.notify test + */ } nt_status = samba_server_gensec_start(req, |