summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/printing/nt_printing.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index 1539b89a0e..7a1f36549f 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -1556,9 +1556,8 @@ static NTSTATUS driver_unlink_internals(connection_struct *conn,
goto err_out;
}
- status = create_synthetic_smb_fname(tmp_ctx, print_dlr_path,
- NULL, NULL, &smb_fname);
- if (!NT_STATUS_IS_OK(status)) {
+ smb_fname = synthetic_smb_fname(tmp_ctx, print_dlr_path, NULL, NULL);
+ if (smb_fname == NULL) {
goto err_out;
}