From fdca0558efa7a22e98b851480509d2b7f11df2e0 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 4 Jan 2023 10:13:31 +0100 Subject: [PATCH] smbd: Remove a "can't happen" NULL check This should really not happen, crashing would be the right response. Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/smbd/smbXsrv_open.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/source3/smbd/smbXsrv_open.c b/source3/smbd/smbXsrv_open.c index e32602c7d61..3b780267694 100644 --- a/source3/smbd/smbXsrv_open.c +++ b/source3/smbd/smbXsrv_open.c @@ -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);