]> git.ipfire.org Git - thirdparty/cups.git/commit
scheduler: Fix possible use_after_free in `cupsdReadClient()` 1454/head
authorZdenek Dohnal <zdohnal@redhat.com>
Thu, 11 Dec 2025 14:12:55 +0000 (15:12 +0100)
committerZdenek Dohnal <zdohnal@redhat.com>
Thu, 11 Dec 2025 14:12:55 +0000 (15:12 +0100)
commitc1d2c631267f28131dd31df5b895b8bfb3005b0d
tree48c13b66227d7eea19b6a1dc86df7f20f91dd74d
parent764b8bfbe89e1a90bbc40177d270826f4b14968a
scheduler: Fix possible use_after_free in `cupsdReadClient()`

If `cupsdSendHeader()` fails, we free the connection and return -1, but
in that case we try to free the connection again in `cupsdReadClient()`.
scheduler/client.c