]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: followup to 14097: missed OpenBSD specfic case 14139/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 6 May 2024 11:31:51 +0000 (13:31 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 6 May 2024 11:31:51 +0000 (13:31 +0200)
pdns/iputils.cc

index bd05985cb21ba995fedda10afbdb05e850e295a5..6beebddad1a557449acdd3896720070b908a45ac 100644 (file)
@@ -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;
     }