Skip to content

Commit

Permalink
rec: followup to 14097: missed OpenBSD specfic case
Browse files Browse the repository at this point in the history
  • Loading branch information
omoerbeek committed May 6, 2024
1 parent fa09727 commit 1235362
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdns/iputils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1235362

Please sign in to comment.