summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2001-12-29 09:52:24 +0000
committerSimo Sorce <idra@samba.org>2001-12-29 09:52:24 +0000
commit79254d2b0490ba400832ef6d460895d45cc4273f (patch)
treec7c21d54409815bd83991ae0e9ab2740b14e3e70 /source
parentc6d867b55273167a0adaeb979062752edeb09549 (diff)
downloadsamba-79254d2b0490ba400832ef6d460895d45cc4273f.tar.gz
samba-79254d2b0490ba400832ef6d460895d45cc4273f.tar.xz
samba-79254d2b0490ba400832ef6d460895d45cc4273f.zip
passing NULL to print_queue_status()'s status parameter could end in a segfault
Diffstat (limited to 'source')
-rw-r--r--source/smbd/reply.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c
index 00e0cb8b863..12834e63a72 100644
--- a/source/smbd/reply.c
+++ b/source/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;