summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/sockunion.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sockunion.c b/lib/sockunion.c
index dbfccfb8..700d539f 100644
--- a/lib/sockunion.c
+++ b/lib/sockunion.c
@@ -403,7 +403,7 @@ sockunion_connect(int fd, union sockunion* peer_su, unsigned short port,
ret = connect(fd, (struct sockaddr *)&su, sockunion_sizeof(&su)) ;
- if ((ret == 0) || ((ret = errno) != EINPROGRESS))
+ if ((ret == 0) || ((ret = errno) == EINPROGRESS))
return 0 ; /* instant success or EINPROGRESS as expected */
zlog_info("can't connect to %s fd %d : %s",