git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7530f5
)
Compare the pointer "vuser" to NULL, not 0
author
Volker Lendecke
<vl@samba.org>
Sat, 14 Jun 2008 14:35:22 +0000
(16:35 +0200)
committer
Volker Lendecke
<vl@samba.org>
Sat, 14 Jun 2008 17:49:49 +0000
(19:49 +0200)
(This used to be commit
5c916549f002d5e4e06f24d396a2bdca73d384c7
)
source3/smbd/uid.c
patch
|
blob
|
history
diff --git
a/source3/smbd/uid.c
b/source3/smbd/uid.c
index b0f8cb224bb8c2ff7df59d14f2f58a20e82f318d..04796418bc2fe3e6102a82038125cee5f49023c5 100644
(file)
--- a/
source3/smbd/uid.c
+++ b/
source3/smbd/uid.c
@@
-175,7
+175,7
@@
bool change_to_user(connection_struct *conn, uint16 vuid)
"user\n"));
return(True);
} else if ((current_user.conn == conn) &&
- (vuser !=
0) && (current_user.vuid == vuid) &&
+ (vuser !=
NULL) && (current_user.vuid == vuid) &&
(current_user.ut.uid == vuser->server_info->uid)) {
DEBUG(4,("change_to_user: Skipping user change - already "
"user\n"));