cups-browsed: Added a NULL check.
@@ -3321,7 +3321,7 @@ create_remote_printer_entry (const char *queue_name,
!q->duplicate_of) /* Find the master of the queues with this name,
to avoid "daisy chaining" */
break;
- if (q->netprinter == 1) {
+ if (q && q->netprinter == 1) {
debug_printf("We have already created a queue with the name %s for another printer which is not a remote CUPS printer. Skipping this printer.\n", p->queue_name);
debug_printf("Try setting \"LocalQueueNamingRemoteCUPS DNS-SD\" or \"LocalQueueNamingRemoteCUPS RemoteName\" in cups-browsed.conf.\n");
goto fail;
