From 1dc29208f3b9bf7733bdfe19262ab533f813d9fb Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 12 Apr 2013 12:14:32 +0200 Subject: [PATCH] pysmbd: Convert py_smbd_unlink to synthetic_smb_fname Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/smbd/pysmbd.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source3/smbd/pysmbd.c b/source3/smbd/pysmbd.c index c1d3b4bc794..683c48ccf75 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); -- 2.34.1