diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-05-06 21:09:47 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-05-09 01:02:16 +0200 |
commit | 49dbd380477f9987d2511ca3111af50f2bdd2859 (patch) | |
tree | 7d4b35b0d93d6b41272ef38916c943bfa3a7c0e2 /source4/smb_server/smb2 | |
parent | 865e9c45606e59e111470bbdb35943d8fceff814 (diff) | |
download | samba-49dbd380477f9987d2511ca3111af50f2bdd2859.tar.gz samba-49dbd380477f9987d2511ca3111af50f2bdd2859.tar.bz2 samba-49dbd380477f9987d2511ca3111af50f2bdd2859.zip |
s4:smb_server/smb: only create a new session with vuid == 0
metze
Diffstat (limited to 'source4/smb_server/smb2')
-rw-r--r-- | source4/smb_server/smb2/sesssetup.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/smb_server/smb2/sesssetup.c b/source4/smb_server/smb2/sesssetup.c index 41f629b978..35a1484030 100644 --- a/source4/smb_server/smb2/sesssetup.c +++ b/source4/smb_server/smb2/sesssetup.c @@ -167,6 +167,11 @@ static void smb2srv_sesssetup_backend(struct smb2srv_request *req, union smb_ses } if (!smb_sess) { + status = NT_STATUS_USER_SESSION_DELETED; + goto failed; + } + + if (smb_sess->session_info) { /* see WSPP test suite - test 11 */ status = NT_STATUS_REQUEST_NOT_ACCEPTED; goto failed; |