]> git.ipfire.org Git - thirdparty/cups.git/commit
Rework setting HTTP errors in CUPS (fixes #893) 1009/head
authorZdenek Dohnal <zdohnal@redhat.com>
Tue, 23 Jul 2024 12:03:30 +0000 (14:03 +0200)
committerZdenek Dohnal <zdohnal@redhat.com>
Tue, 23 Jul 2024 12:03:30 +0000 (14:03 +0200)
commit8643c9784481f925516f79ce35abc344cd9e0c18
tree1c4a15744ac365f7bd28ada95265361b8cef18f0
parenteabdc339a13f176a0d6e6969485a1f99a1c9319f
Rework setting HTTP errors in CUPS (fixes #893)

Sometimes errno is not set when we want to report HTTP error, so we
should use `http->error` if available or internal server error. In cases
of internal HTTP related errors where we don't have HTTP connection
available (before setting of HTTP connection or in callbacks which
process IPP messages), use `_cupsSetError()`.

Fixes #893
cups/cups-private.h
cups/getdevices.c
cups/getputfile.c
cups/http-addr.c
cups/http.c
cups/ipp.c
cups/json.c
cups/ppd-util.c
cups/request.c