summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/printing/printspoolss.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/printing/printspoolss.c b/source3/printing/printspoolss.c
index 5fab7d54ef..fc1e9c12e3 100644
--- a/source3/printing/printspoolss.c
+++ b/source3/printing/printspoolss.c
@@ -212,9 +212,9 @@ NTSTATUS print_spool_open(files_struct *fsp,
}
/* setup a full fsp */
- status = create_synthetic_smb_fname(fsp, pf->filename, NULL,
- NULL, &fsp->fsp_name);
- if (!NT_STATUS_IS_OK(status)) {
+ fsp->fsp_name = synthetic_smb_fname(fsp, pf->filename, NULL, NULL);
+ if (fsp->fsp_name == NULL) {
+ status = NT_STATUS_NO_MEMORY;
goto done;
}