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 #988

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

Maryse47 commented 2 weeks ago

I can confirm this fixes reported issue.