mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
smbd: Fix CID 240676 Dereference after null check
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
dd370f8a51
commit
c31e5371bf
@ -5079,6 +5079,13 @@ static NTSTATUS create_file_unixpath(connection_struct *conn,
|
||||
if (lease != NULL) {
|
||||
uint16_t epoch = lease->lease_epoch;
|
||||
uint16_t version = lease->lease_version;
|
||||
|
||||
if (req == NULL) {
|
||||
DBG_WARNING("Got lease on internal open\n");
|
||||
status = NT_STATUS_INTERNAL_ERROR;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
status = lease_match(conn,
|
||||
req,
|
||||
&lease->lease_key,
|
||||
|
Loading…
x
Reference in New Issue
Block a user