]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_ceph: Fix CID 1474440: Null pointer dereferences
authorVolker Lendecke <vl@samba.org>
Tue, 23 Mar 2021 10:55:43 +0000 (11:55 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 24 Mar 2021 20:31:30 +0000 (20:31 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_ceph.c

index e371090c95d3187673abd3da275e148ed5e91817..038258a1d8da173c220fd05592c5e3a2ded36f45 100644 (file)
@@ -1408,7 +1408,7 @@ static NTSTATUS cephwrap_create_dfs_pathat(struct vfs_handle_struct *handle,
   out:
 
        DBG_DEBUG("[CEPH] create_dfs_pathat(%s) = %s\n",
-                       full_fname->base_name,
+                       full_fname != NULL ? full_fname->base_name : "",
                        nt_errstr(status));
 
        TALLOC_FREE(frame);