summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-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"));