]> git.ipfire.org Git - thirdparty/pdns.git/commit
FDWrapper: Always reset the internal descriptor to -1 14015/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 2 Apr 2024 07:54:15 +0000 (09:54 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 2 Apr 2024 09:44:55 +0000 (11:44 +0200)
commitdab67980ff1d9071dae629bc0e260933e55ca7a5
tree7c80831ac3481bdd0b723c8c82f61c8834f74bfe
parent206fa4f0741819b9ad0e4f7f41ed7895272b1402
FDWrapper: Always reset the internal descriptor to -1

Even if it was a different negative value, which happens for example
with the bpf helper functions which return `-errno`.

(cherry picked from commit eefbe57feca72af4a088e8e872e864dc36e9284e)
pdns/misc.hh