mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-17 16:48:43 +00:00
sk_write bugfix for BSD.
This commit is contained in:
parent
b4d8a0c280
commit
09e4117cc1
@ -1025,7 +1025,7 @@ sk_write(sock *s)
|
||||
{
|
||||
sockaddr sa;
|
||||
fill_in_sockaddr(&sa, s->daddr, s->dport);
|
||||
if (connect(s->fd, (struct sockaddr *) &sa, sizeof(sa)) >= 0)
|
||||
if (connect(s->fd, (struct sockaddr *) &sa, sizeof(sa)) >= 0 || errno == EISCONN)
|
||||
sk_tcp_connected(s);
|
||||
else if (errno != EINTR && errno != EAGAIN && errno != EINPROGRESS)
|
||||
s->err_hook(s, errno);
|
||||
|
Loading…
Reference in New Issue
Block a user