mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
BUG 1147; bad pointer case in get_stored_queue_info() causing seg fault
(This used to be commit 91af1fb73a
)
This commit is contained in:
parent
c4877403a0
commit
1fe6e29637
@ -2183,7 +2183,7 @@ static BOOL get_stored_queue_info(struct tdb_print_db *pdb, int snum, int *pcoun
|
|||||||
uint32 jobid;
|
uint32 jobid;
|
||||||
struct printjob *pjob;
|
struct printjob *pjob;
|
||||||
|
|
||||||
jobid = IVAL(&cgdata.dptr, i*4);
|
jobid = IVAL(cgdata.dptr, i*4);
|
||||||
DEBUG(5,("get_stored_queue_info: changed job = %u\n", (unsigned int)jobid));
|
DEBUG(5,("get_stored_queue_info: changed job = %u\n", (unsigned int)jobid));
|
||||||
pjob = print_job_find(snum, jobid);
|
pjob = print_job_find(snum, jobid);
|
||||||
if (!pjob) {
|
if (!pjob) {
|
||||||
|
Loading…
Reference in New Issue
Block a user