]> git.ipfire.org Git - thirdparty/cups.git/commit
scheduler: Fix cupsd activated on-demand via socket
authorzdohnal <zdohnal@redhat.com>
Tue, 18 Jun 2024 08:41:50 +0000 (10:41 +0200)
committerGitHub <noreply@github.com>
Tue, 18 Jun 2024 08:41:50 +0000 (10:41 +0200)
commitcd13b3e92063a1134e9fec370e9f4fa7a896d3ee
treeb5068afc896b9967c8c4337fdfb846a722a22d93
parentd0b16a27d18715911cbf174f445b24ad4749e61b
parent145b946a86062aafab76c656ee9c1112bfd4f804
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