summaryrefslogtreecommitdiffstats
path: root/source/rpc_server/srv_srvsvc_nt.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2002-09-25 15:19:00 +0000
committerGerald Carter <jerry@samba.org>2002-09-25 15:19:00 +0000
commit65e7b5273bb58802bf0c389b77f7fcae0a1f6139 (patch)
tree672f59370f72efa2b3f4471bf311e0159e004a13 /source/rpc_server/srv_srvsvc_nt.c
parentb5d03c7b55fb2f34fa4d0228abe4389020e5ed5f (diff)
downloadsamba-65e7b5273bb58802bf0c389b77f7fcae0a1f6139.tar.gz
samba-65e7b5273bb58802bf0c389b77f7fcae0a1f6139.tar.xz
samba-65e7b5273bb58802bf0c389b77f7fcae0a1f6139.zip
sync'ing up for 3.0alpha20 release
Diffstat (limited to 'source/rpc_server/srv_srvsvc_nt.c')
-rw-r--r--source/rpc_server/srv_srvsvc_nt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/rpc_server/srv_srvsvc_nt.c b/source/rpc_server/srv_srvsvc_nt.c
index 5c1038949b5..69945b50b84 100644
--- a/source/rpc_server/srv_srvsvc_nt.c
+++ b/source/rpc_server/srv_srvsvc_nt.c
@@ -338,10 +338,10 @@ BOOL share_access_check(connection_struct *conn, int snum, user_struct *vuser, u
if (!psd)
goto out;
- if (vuser)
- token = vuser->nt_user_token;
- else
+ if (conn->nt_user_token)
token = conn->nt_user_token;
+ else
+ token = vuser->nt_user_token;
ret = se_access_check(psd, token, desired_access, &granted, &status);