Compare the pointer "vuser" to NULL, not 0
authorVolker Lendecke <vl@samba.org>
Sat, 14 Jun 2008 14:35:22 +0000 (16:35 +0200)
committerVolker 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

index b0f8cb224bb8c2ff7df59d14f2f58a20e82f318d..04796418bc2fe3e6102a82038125cee5f49023c5 100644 (file)
@@ -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"));