summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2023-01-04 10:13:31 +0100
committerJeremy Allison <jra@samba.org>2023-01-10 00:28:37 +0000
commitfdca0558efa7a22e98b851480509d2b7f11df2e0 (patch)
tree3ee11633078b0698853919247efa173e0d7db6d8 /source3
parent0c709cb6b70ed94b82a598bf3fb581ffb7c48200 (diff)
downloadsamba-fdca0558efa7a22e98b851480509d2b7f11df2e0.tar.gz
smbd: Remove a "can't happen" NULL check
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>
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/smbXsrv_open.c4
1 files changed, 0 insertions, 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);