]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Assert we have an fsp in smbd_do_setfilepathinfo
authorVolker Lendecke <vl@samba.org>
Mon, 22 Jul 2024 09:59:40 +0000 (11:59 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 6 Aug 2024 17:37:39 +0000 (17:37 +0000)
With this in the future we can avoid some special cases in our callees

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Aug  6 17:37:39 UTC 2024 on atb-devel-224

source3/smbd/smb2_trans2.c

index b1d593f7507440b1a7129cfba0d6f580c2932732..50702573c0c453834aef47fca7c541ef54d5d3bf 100644 (file)
@@ -5070,6 +5070,8 @@ NTSTATUS smbd_do_setfilepathinfo(connection_struct *conn,
                 fsp_fnum_dbg(fsp),
                 info_level, total_data));
 
+       SMB_ASSERT(fsp != NULL);
+
        switch (info_level) {
 
                case SMB_INFO_STANDARD: