From: Volker Lendecke Date: Wed, 4 Jan 2023 09:13:31 +0000 (+0100) Subject: smbd: Remove a "can't happen" NULL check X-Git-Tag: talloc-2.4.0~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fdca0558efa;p=thirdparty%2Fsamba.git 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 --- 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);