diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-01-11 13:14:28 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-01-11 13:14:28 +0000 |
commit | 0b0b937b58f4bf4e005fb622f0db19175fc46a47 (patch) | |
tree | 08893284f3d02cfcdd3fb45e85365fd843d354ff /source/libsmb | |
parent | 1c5e19a418136c0ae524e62a4907501212ebac3d (diff) | |
download | samba-0b0b937b58f4bf4e005fb622f0db19175fc46a47.tar.gz samba-0b0b937b58f4bf4e005fb622f0db19175fc46a47.tar.xz samba-0b0b937b58f4bf4e005fb622f0db19175fc46a47.zip |
fixed a crash bug in domain auth caused by an uninitialised nt_status
Diffstat (limited to 'source/libsmb')
-rw-r--r-- | source/libsmb/cliconnect.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/libsmb/cliconnect.c b/source/libsmb/cliconnect.c index 7649a88ffdd..1812416426d 100644 --- a/source/libsmb/cliconnect.c +++ b/source/libsmb/cliconnect.c @@ -1270,6 +1270,7 @@ again: DEBUG(1,("failed session setup\n")); nt_status = cli_nt_error(cli); cli_shutdown(cli); + if (NT_STATUS_IS_OK(nt_status)) nt_status = NT_STATUS_UNSUCCESSFUL; return nt_status; } @@ -1281,6 +1282,7 @@ again: DEBUG(1,("failed tcon_X\n")); nt_status = cli_nt_error(cli); cli_shutdown(cli); + if (NT_STATUS_IS_OK(nt_status)) nt_status = NT_STATUS_UNSUCCESSFUL; return nt_status; } } |