diff options
author | Stefan Metzmacher <metze@samba.org> | 2004-07-05 07:29:14 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:56:50 -0500 |
commit | 5f4a153a0be4a6ec5e02f27a9752ceeab5dfcbae (patch) | |
tree | 4f8238d32827f8084324e54d88220a0db2a6c778 /source4/smb_server | |
parent | b82881591cd1c63ed28d14ab31a652ef5319b2d0 (diff) | |
download | samba-5f4a153a0be4a6ec5e02f27a9752ceeab5dfcbae.tar.gz samba-5f4a153a0be4a6ec5e02f27a9752ceeab5dfcbae.tar.bz2 samba-5f4a153a0be4a6ec5e02f27a9752ceeab5dfcbae.zip |
r1336: check the vuid in old style sessionsetup too
metze
(This used to be commit 32e307857ccc99b446e7574d46b610c63ee03583)
Diffstat (limited to 'source4/smb_server')
-rw-r--r-- | source4/smb_server/sesssetup.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/smb_server/sesssetup.c b/source4/smb_server/sesssetup.c index 2d7c5dd76b..e169a5f043 100644 --- a/source4/smb_server/sesssetup.c +++ b/source4/smb_server/sesssetup.c @@ -74,6 +74,9 @@ static NTSTATUS sesssetup_old(struct smbsrv_request *req, union smb_sesssetup *s sess->old.out.action = 0; sess->old.out.vuid = register_vuid(req->smb_conn, session_info, sess->old.in.user); + if (sess->old.out.vuid == UID_FIELD_INVALID) { + return NT_STATUS_ACCESS_DENIED; + } sesssetup_common_strings(req, &sess->old.out.os, &sess->old.out.lanman, |