1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s3:smbd: Fix a possibile null pointer dereference

Found by clang.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Isaac Boukris <iboukris@samba.org>
This commit is contained in:
Andreas Schneider 2020-06-15 10:32:49 +02:00 committed by Isaac Boukris
parent e7204f3c9e
commit ccf1c2227e

View File

@ -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