Skip to content

Commit

Permalink
net: net_connect_ip*() - Handle OpenBSD errors similarly to FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
catap authored and cmouse committed Nov 28, 2024
1 parent 98220b6 commit 128c323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ static int net_connect_ip_full(const struct ip_addr *ip, in_port_t port,
fd = net_connect_ip_once(ip, port, my_ip, sock_type, blocking);
if (fd != -1 || try++ >= MAX_CONNECT_RETRIES ||
(errno != EADDRNOTAVAIL
#ifdef __FreeBSD__
#if defined(__FreeBSD__) || defined(__OpenBSD__)
/* busy */
&& errno != EADDRINUSE
/* pf may cause this if another connection used
Expand Down

0 comments on commit 128c323

Please sign in to comment.