summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-04-21 02:27:12 +0000
committerJeremy Allison <jra@samba.org>1998-04-21 02:27:12 +0000
commitc41f6c8fdf20ead45658f93ab4d42cb97545f10d (patch)
tree961741992fd4a1377c95b9116b28f5396cc4d518 /source3/smbd
parent2dee1ed38867504d067d593c62734ecff0eca77c (diff)
downloadsamba-c41f6c8fdf20ead45658f93ab4d42cb97545f10d.tar.gz
samba-c41f6c8fdf20ead45658f93ab4d42cb97545f10d.tar.bz2
samba-c41f6c8fdf20ead45658f93ab4d42cb97545f10d.zip
Added cli_ulogoff() calls to all the exit code paths in security=server.
Jeremy. (This used to be commit 78d87a5bfdfc6d3f4428591d30294fe7d05d0f91)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/password.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c
index b4d728d0c2..b69b58f54e 100644
--- a/source3/smbd/password.c
+++ b/source3/smbd/password.c
@@ -1769,12 +1769,14 @@ BOOL server_validate(char *user, char *domain,
/* if logged in as guest then reject */
if ((SVAL(cli.inbuf,smb_vwv2) & 1) != 0) {
DEBUG(1,("password server %s gave us guest only\n", cli.desthost));
+ cli_ulogoff(&cli);
return(False);
}
if (!cli_send_tconX(&cli, "IPC$", "IPC", "", 1)) {
DEBUG(1,("password server %s refused IPC$ connect\n", cli.desthost));
+ cli_ulogoff(&cli);
return False;
}
@@ -1792,12 +1794,14 @@ BOOL server_validate(char *user, char *domain,
if (!cli_NetWkstaUserLogon(&cli,user,local_machine)) {
DEBUG(1,("password server %s failed NetWkstaUserLogon\n", cli.desthost));
cli_tdis(&cli);
+ cli_ulogoff(&cli);
return False;
}
if (cli.privilages == 0) {
DEBUG(1,("password server %s gave guest privilages\n", cli.desthost));
cli_tdis(&cli);
+ cli_ulogoff(&cli);
return False;
}
@@ -1806,6 +1810,7 @@ BOOL server_validate(char *user, char *domain,
cli.desthost,
cli.eff_name));
cli_tdis(&cli);
+ cli_ulogoff(&cli);
return False;
}
}