]> git.ipfire.org Git - thirdparty/cups.git/commit
scheduler: Fix cupsd activated on-demand via socket
authorZdenek Dohnal <zdohnal@redhat.com>
Tue, 18 Jun 2024 08:43:30 +0000 (10:43 +0200)
committerZdenek Dohnal <zdohnal@redhat.com>
Tue, 18 Jun 2024 08:43:30 +0000 (10:43 +0200)
commit74f437b7d20be44bacbbbc792da69ff9c82dfe8f
tree558b0e0a27b4bc2c2a0d9a511a60333b2271d73a
parent56b9728c8cdd3635b108a3ca9a125321358c6630
scheduler: Fix cupsd activated on-demand via socket

If only the expected cups.sock is set as listener in cupsd.conf, the
array Listeners was NULL. To prevent copying the code, do the array
allocation earlier and have only one check for Listeners, in
service_checkin() which is run every time cupsd starts.

Fixes #985
scheduler/conf.c
scheduler/main.c