]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbXsrv_session: Remove a "can't happen" NULL check
authorVolker Lendecke <vl@samba.org>
Thu, 8 Feb 2024 11:51:32 +0000 (12:51 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 9 Apr 2024 22:52:38 +0000 (22:52 +0000)
This should really not happen, crashing would be the right
response. Align with fdca0558efa.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/smbd/smbXsrv_session.c

index 03c54b27997916df6d709fe41f5747eb22389ef6..b919efcdb483f97c94107d5e590228e4b613811d 100644 (file)
@@ -926,10 +926,6 @@ static NTSTATUS smbXsrv_session_global_store(struct smbXsrv_session_global0 *glo
         * store the information in the old format.
         */
 
-       if (global->db_rec == NULL) {
-               return NT_STATUS_INTERNAL_ERROR;
-       }
-
        key = dbwrap_record_get_key(global->db_rec);
        val = dbwrap_record_get_value(global->db_rec);