]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Remove a "can't happen" NULL check
authorVolker Lendecke <vl@samba.org>
Wed, 4 Jan 2023 09:13:31 +0000 (10:13 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 10 Jan 2023 00:28:37 +0000 (00:28 +0000)
This should really not happen, crashing would be the right response.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smbXsrv_open.c

index e32602c7d6139ad464180e4181baaf2e43b5ee90..3b78026769474afa98489883f161383d331a2414 100644 (file)
@@ -710,10 +710,6 @@ static NTSTATUS smbXsrv_open_global_store(struct smbXsrv_open_global0 *global)
         * 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);