]> git.ipfire.org Git - thirdparty/pdns.git/commit - pdns/rfc2136handler.cc
Handle exceptions raised by `closesocket()` 4744/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 5 Dec 2016 15:42:55 +0000 (16:42 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 5 Dec 2016 15:42:55 +0000 (16:42 +0100)
commita7b68ae7e414ec9f3184df70ac8008f8a310ae60
tree68b532c9c5eff9cca0d3330cf0bcf50d1eb5446a
parentde08b9a1391104645598ad170c3b02360c91b3ba
Handle exceptions raised by `closesocket()`

This was not very well handled, and could cause the PowerDNS process
to terminate. This is especially nasty when `closesocket()` is called
from a destructor, as we could already be dealing with an exception.
pdns/dnsproxy.cc
pdns/pdns_recursor.cc
pdns/resolver.cc
pdns/rfc2136handler.cc
pdns/sstuff.hh
pdns/tcpreceiver.cc
pdns/utility.hh