diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-01-14 21:52:25 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-01-14 21:52:25 +0000 |
commit | dd0f0f043f740a4099ed17a43fd7d5cbe1142540 (patch) | |
tree | 1fd621d9a49e0bd4f90bdae969df95119cae7ae1 /source3 | |
parent | 9e007457e4aa0ed8656782be1b8af42fc217614b (diff) | |
download | samba-dd0f0f043f740a4099ed17a43fd7d5cbe1142540.tar.gz samba-dd0f0f043f740a4099ed17a43fd7d5cbe1142540.tar.bz2 samba-dd0f0f043f740a4099ed17a43fd7d5cbe1142540.zip |
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)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/auth/auth_domain.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; } |