]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:smbd: use print_spool_rap_jobid() in call_trans2ioctl()
authorStefan Metzmacher <metze@samba.org>
Tue, 5 Jun 2012 06:42:53 +0000 (08:42 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 6 Jun 2012 08:18:37 +0000 (10:18 +0200)
metze

source3/smbd/trans2.c

index af2a21fdf28d24876c2cdbad7a11b48eafb2782d..3787fa972173f087ceb9953c1946a8c399b65c52 100644 (file)
@@ -37,6 +37,7 @@
 #include "auth.h"
 #include "smbprofile.h"
 #include "rpc_server/srv_pipe_hnd.h"
+#include "printing.h"
 
 #define DIR_ENTRY_SAFETY_MARGIN 4096
 
@@ -8419,11 +8420,8 @@ static void call_trans2ioctl(connection_struct *conn,
                        CAN ACCEPT THIS IN UNICODE. JRA. */
 
                /* Job number */
-               if (fsp->print_file) {
-                       SSVAL(pdata, 0, fsp->print_file->rap_jobid);
-               } else {
-                       SSVAL(pdata, 0, 0);
-               }
+               SSVAL(pdata, 0, print_spool_rap_jobid(fsp->print_file));
+
                srvstr_push(pdata, req->flags2, pdata + 2,
                            lp_netbios_name(), 15,
                            STR_ASCII|STR_TERMINATE); /* Our NetBIOS name */