s3-smbd: avoid assuming fsp is always intact after close_file call.
[martins/samba.git] / source3 / smbd / smb2_close.c
index 33863d32f5f2e82d21442900f8e85f7dc4e3697d..1888736e4ae3397e0f899c7af8d1e84d342058a6 100644 (file)
@@ -263,7 +263,7 @@ static NTSTATUS smbd_smb2_close(struct smbd_smb2_request *req,
        status = close_file(smbreq, fsp, NORMAL_CLOSE);
        if (!NT_STATUS_IS_OK(status)) {
                DEBUG(5,("smbd_smb2_close: close_file[%s]: %s\n",
-                        fsp_str_dbg(fsp), nt_errstr(status)));
+                        smb_fname_str_dbg(smb_fname), nt_errstr(status)));
                return status;
        }