From 1235362f7b641b70ad6f47c4ff41b33c1299780d Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Mon, 6 May 2024 13:31:51 +0200 Subject: [PATCH] rec: followup to 14097: missed OpenBSD specfic case --- pdns/iputils.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/iputils.cc b/pdns/iputils.cc index bd05985cb21b..6beebddad1a5 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; }