mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 01:31:55 +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