diff options
Diffstat (limited to 'source3/smbd/pysmbd.c')
-rw-r--r-- | source3/smbd/pysmbd.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/smbd/pysmbd.c b/source3/smbd/pysmbd.c index c1d3b4bc79..683c48ccf7 100644 --- a/source3/smbd/pysmbd.c +++ b/source3/smbd/pysmbd.c @@ -424,11 +424,10 @@ static PyObject *py_smbd_unlink(PyObject *self, PyObject *args, PyObject *kwargs return NULL; } - status = create_synthetic_smb_fname_split(frame, fname, NULL, - &smb_fname); - if (!NT_STATUS_IS_OK(status)) { + smb_fname = synthetic_smb_fname_split(frame, fname, NULL); + if (smb_fname == NULL) { TALLOC_FREE(frame); - PyErr_NTSTATUS_IS_ERR_RAISE(status); + PyErr_NTSTATUS_IS_ERR_RAISE(NT_STATUS_NO_MEMORY); } ret = SMB_VFS_UNLINK(conn, smb_fname); |