diff options
author | Simo Sorce <idra@samba.org> | 2001-12-29 09:52:24 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2001-12-29 09:52:24 +0000 |
commit | 4fd97a7a039b94f41e676886d810be523fe2f1e9 (patch) | |
tree | 5d9013601b2ffaea6756ee9ded10f90fb9e05eb2 /source3/smbd | |
parent | b6878a35b5f54920bbf82d44b9c04c3f0edbb5d4 (diff) | |
download | samba-4fd97a7a039b94f41e676886d810be523fe2f1e9.tar.gz samba-4fd97a7a039b94f41e676886d810be523fe2f1e9.tar.bz2 samba-4fd97a7a039b94f41e676886d810be523fe2f1e9.zip |
passing NULL to print_queue_status()'s status parameter could end in a segfault
(This used to be commit 79254d2b0490ba400832ef6d460895d45cc4273f)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/reply.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 00e0cb8b86..12834e63a7 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -2586,8 +2586,9 @@ int reply_printqueue(connection_struct *conn, { print_queue_struct *queue = NULL; + print_status_struct status; char *p = smb_buf(outbuf) + 3; - int count = print_queue_status(SNUM(conn), &queue,NULL); + int count = print_queue_status(SNUM(conn), &queue, &status); int num_to_get = ABS(max_count); int first = (max_count>0?start_index:start_index+max_count+1); int i; |