OpenPrinting / cups-browsed

Apache License 2.0
33 stars 10 forks source link

Fix the daemon crash when Get-Printer-Attributes fails #25

Closed zdohnal closed 7 months ago

zdohnal commented 7 months ago

cups-browsed crashed when it found remote CUPS queue shared by mDNS on local network, but IPP request for this queue failed. The empty prattrs is later accessed, which causes the crash.

Fixed by jumping to the point where failed attempts ends when we don't get the IPP response.