Remove dead code now vuser can no longer be NULL.
authorJeremy Allison <jra@samba.org>
Thu, 20 Dec 2012 19:54:07 +0000 (11:54 -0800)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 9 Jan 2013 04:28:39 +0000 (15:28 +1100)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/smbd/uid.c

index 9fc5d7c..298fa83 100644 (file)
@@ -299,14 +299,6 @@ bool change_to_user(connection_struct *conn, uint64_t vuid)
        }
 
        session_info = vuser->session_info;
-
-       if (!conn->force_user && vuser == NULL) {
-               DEBUG(2,("Invalid vuid used %llu in accessing share %s.\n",
-                        (unsigned long long)vuid,
-                        lp_servicename(talloc_tos(), snum)));
-               return False;
-       }
-
        return change_to_user_internal(conn, session_info, vuid);
 }