OpenPrinting / cups

OpenPrinting CUPS Sources
https://openprinting.github.io/cups
Apache License 2.0
957 stars 174 forks source link

scheduler: Fix cupsd activated on-demand via socket (fixes #985) #987

Closed zdohnal closed 2 weeks ago

zdohnal commented 2 weeks ago

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

zdohnal commented 2 weeks ago

Fixed by https://github.com/OpenPrinting/cups/commit/74f437b7d .