From dd0f0f043f740a4099ed17a43fd7d5cbe1142540 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 14 Jan 2002 21:52:25 +0000 Subject: Fix a segfault in auth/auth_domain.c error cases. This occured when the attempt to contact the PDC failed. The connection code has already shut down the connection, and 'free'ed the cli or has never initialised it in the first place. Andrew Bartlett (This used to be commit 37ce7630434c1afae5164c64438f428dd8e1b731) --- source3/auth/auth_domain.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3/auth/auth_domain.c') diff --git a/source3/auth/auth_domain.c b/source3/auth/auth_domain.c index 6dcf3119ea..2b5104bf92 100644 --- a/source3/auth/auth_domain.c +++ b/source3/auth/auth_domain.c @@ -241,7 +241,7 @@ static NTSTATUS domain_client_validate(TALLOC_CTX *mem_ctx, { fstring remote_machine; NET_USER_INFO_3 info3; - struct cli_state *cli; + struct cli_state *cli = NULL; NTSTATUS nt_status = NT_STATUS_UNSUCCESSFUL; struct passwd *pass; @@ -264,7 +264,6 @@ static NTSTATUS domain_client_validate(TALLOC_CTX *mem_ctx, if (!NT_STATUS_IS_OK(nt_status)) { DEBUG(0,("domain_client_validate: Domain password server not available.\n")); - cli_shutdown(cli); return nt_status; } -- cgit