printing: use correct error out in file_version_is_newer() when openat_pathref_fsp...
[samba.git] / source3 / printing / nt_printing.c
index 9b7904f6778b66aff6d6b3b13c12f12a12b2377c..0788134bf8723c4b3f27f7af4e1d3cdd736b5238 100644 (file)
@@ -833,7 +833,8 @@ static int file_version_is_newer(connection_struct *conn, fstring new_file, fstr
 
        status = openat_pathref_fsp(conn->cwd_fsp, smb_fname);
        if (!NT_STATUS_IS_OK(status)) {
-               return false;
+               ret = 1;
+               goto done;
        }
 
        status = SMB_VFS_CREATE_FILE(