summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-03-20 00:51:41 +0000
committerJeremy Allison <jra@samba.org>2003-03-20 00:51:41 +0000
commitc8eed69be0850e7c68318562c91f73855a09dd92 (patch)
tree900e9791c3c38d9378c77236f802c96f8c791f8b /source3/rpc_server
parent2f13a74671c62a2861979ce2ab33ad1363bdbcf7 (diff)
downloadsamba-c8eed69be0850e7c68318562c91f73855a09dd92.tar.gz
samba-c8eed69be0850e7c68318562c91f73855a09dd92.tar.bz2
samba-c8eed69be0850e7c68318562c91f73855a09dd92.zip
lib/messages.c: Check return from chainlock before modifying message queue.
Apply the job returned limit across all requests for job queues. Jeremy. (This used to be commit dee1326a1d8a0bf8977df22a0fe014dd5d8dc769)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 8073e3cf28..36ff92e46f 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -6353,7 +6353,6 @@ WERROR _spoolss_enumjobs( pipes_struct *p, SPOOL_Q_ENUMJOBS *q_u, SPOOL_R_ENUMJO
int snum;
print_status_struct prt_status;
print_queue_struct *queue=NULL;
- int max_rep_jobs;
/* that's an [in out] buffer */
spoolss_move_buffer(q_u->buffer, &r_u->buffer);
@@ -6367,8 +6366,6 @@ WERROR _spoolss_enumjobs( pipes_struct *p, SPOOL_Q_ENUMJOBS *q_u, SPOOL_R_ENUMJO
if (!get_printer_snum(p, handle, &snum))
return WERR_BADFID;
- max_rep_jobs = lp_max_reported_jobs(snum);
-
*returned = print_queue_status(snum, &queue, &prt_status);
DEBUGADD(4,("count:[%d], status:[%d], [%s]\n", *returned, prt_status.status, prt_status.message));
@@ -6377,9 +6374,6 @@ WERROR _spoolss_enumjobs( pipes_struct *p, SPOOL_Q_ENUMJOBS *q_u, SPOOL_R_ENUMJO
return WERR_OK;
}
- if (max_rep_jobs && (*returned > max_rep_jobs))
- *returned = max_rep_jobs;
-
switch (level) {
case 1:
return enumjobs_level1(queue, snum, buffer, offered, needed, returned);