mirror of
https://github.com/samba-team/samba.git
synced 2025-02-15 05:57:49 +03:00
Correct (?) handling for VC = 0. Trying to fix XP logoff leaving resources
around. Jeremy.
This commit is contained in:
parent
dc18ffcc5a
commit
870e111fac
@ -493,6 +493,16 @@ static int reply_sesssetup_and_X_spnego(connection_struct *conn, char *inbuf,
|
||||
return ERROR_NT(NT_STATUS_LOGON_FAILURE);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
On new VC == 0, shutdown *all* old connections and users.
|
||||
****************************************************************************/
|
||||
|
||||
static void setup_new_vc_session(void)
|
||||
{
|
||||
DEBUG(2,("setup_new_vc_session: New VC == 0, closing all old resources.\n"));
|
||||
conn_close_all();
|
||||
invalidate_all_vuids();
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
reply to a session setup command
|
||||
@ -541,6 +551,9 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf,
|
||||
return ERROR_NT(NT_STATUS_UNSUCCESSFUL);
|
||||
}
|
||||
|
||||
if (SVAL(inbuf,smb_vwv4) == 0) {
|
||||
setup_new_vc_session();
|
||||
}
|
||||
return reply_sesssetup_and_X_spnego(conn, inbuf, outbuf, length, bufsize);
|
||||
}
|
||||
|
||||
@ -641,6 +654,10 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf,
|
||||
|
||||
}
|
||||
|
||||
if (SVAL(inbuf,smb_vwv4) == 0) {
|
||||
setup_new_vc_session();
|
||||
}
|
||||
|
||||
DEBUG(3,("sesssetupX:name=[%s]\\[%s]@[%s]\n", domain, user, get_remote_machine_name()));
|
||||
|
||||
if (*user) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user