diff options
author | Chris Hall <GMCH@hestia.halldom.com> | 2010-01-20 16:06:31 +0000 |
---|---|---|
committer | Chris Hall <GMCH@hestia.halldom.com> | 2010-01-20 16:06:31 +0000 |
commit | 45a67b197f4c9ed42179672f8b929a59faf11145 (patch) | |
tree | b3ec61b4da65977d66b8e2386bcb02c576a21077 /lib/sockunion.c | |
parent | 1ef29647b157db20b054d019981f5113fddeaa91 (diff) | |
download | quagga-45a67b197f4c9ed42179672f8b929a59faf11145.tar.bz2 quagga-45a67b197f4c9ed42179672f8b929a59faf11145.tar.xz |
Fix sockunion_connect() error handling.
Diffstat (limited to 'lib/sockunion.c')
-rw-r--r-- | lib/sockunion.c | 2 |
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", |