summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-06-14 16:35:22 +0200
committerVolker Lendecke <vl@samba.org>2008-06-14 19:49:49 +0200
commitad538bf0ab4ae10ff10ea71898875d2d35e25dea (patch)
tree5c506717c60ab5c2a59f7fadbf3c75bab1fd7f3c
parente7530f567cf14d843d185656d71bf0fadb04379a (diff)
downloadsamba-ad538bf0ab4ae10ff10ea71898875d2d35e25dea.tar.gz
samba-ad538bf0ab4ae10ff10ea71898875d2d35e25dea.tar.bz2
samba-ad538bf0ab4ae10ff10ea71898875d2d35e25dea.zip
Compare the pointer "vuser" to NULL, not 0
(This used to be commit 5c916549f002d5e4e06f24d396a2bdca73d384c7)
-rw-r--r--source3/smbd/uid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c
index b0f8cb224b..04796418bc 100644
--- 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"));