From: Otto Moerbeek Date: Mon, 6 May 2024 11:31:51 +0000 (+0200) Subject: rec: followup to 14097: missed OpenBSD specfic case X-Git-Tag: rec-5.1.0-alpha1~16^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F14139%2Fhead;p=thirdparty%2Fpdns.git rec: followup to 14097: missed OpenBSD specfic case --- diff --git a/pdns/iputils.cc b/pdns/iputils.cc index bd05985cb2..6beebddad1 100644 --- a/pdns/iputils.cc +++ b/pdns/iputils.cc @@ -304,7 +304,7 @@ int sendOnNBSocket(int fileDesc, const struct msghdr* msgh) #ifdef __OpenBSD__ // OpenBSD can and does return EAGAIN on non-blocking datagram sockets for (int i = 0; i < 10; i++) { // Arbitrary upper bound - if (sendmsg(fd, msgh, 0) != -1) { + if (sendmsg(fileDesc, msgh, 0) != -1) { sendErr = 0; break; }