From: Andreas Schneider Date: Mon, 15 Jun 2020 08:32:49 +0000 (+0200) Subject: s3:smbd: Fix a possibile null pointer dereference X-Git-Tag: ldb-2.2.0~99 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ccf1c2227e623411602f3e936aaed6a9bce978d4;p=thirdparty%2Fsamba.git s3:smbd: Fix a possibile null pointer dereference Found by clang. Signed-off-by: Andreas Schneider Reviewed-by: Isaac Boukris --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 286f1b8e6f7..8f6d293c06f 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -6024,7 +6024,7 @@ NTSTATUS create_file_default(connection_struct *conn, fake_file_type = is_fake_file(smb_fname); - if (fake_file_type != FAKE_FILE_TYPE_NONE) { + if (req != NULL && fake_file_type != FAKE_FILE_TYPE_NONE) { /* * Here we go! support for changing the disk quotas