X-Git-Url: http://git.samba.org/?a=blobdiff_plain;f=source3%2Fsmbd%2Fopen.c;h=3c24d76a089382cbd26fbb1fb6709cf93eda312b;hb=c31e5371bf3334964c078c963de7b5db7236ff35;hp=643e074f399a688c508d2e91e52e3aee0ec8da9e;hpb=dd370f8a511bf13c48c5cd34c41fbb630172349f;p=metze%2Fsamba%2Fwip.git diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 643e074f399a..3c24d76a0893 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -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,