From 3c78e9c78cee5050f04420a358bc4e2c619b0655 Mon Sep 17 00:00:00 2001 From: Thomas Hipp Date: Fri, 9 Oct 2015 15:18:08 +0200 Subject: [PATCH] miniupnpc: fix while-loop condition --- miniupnpc/connecthostport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniupnpc/connecthostport.c b/miniupnpc/connecthostport.c index b9a3bec..bccbb42 100644 --- a/miniupnpc/connecthostport.c +++ b/miniupnpc/connecthostport.c @@ -116,7 +116,7 @@ int connecthostport(const char * host, unsigned short port, /* EINTR The system call was interrupted by a signal that was caught * EINPROGRESS The socket is nonblocking and the connection cannot * be completed immediately. */ - while(n < 0 && (errno == EINTR || errno = EINPROGRESS)) + while(n < 0 && (errno == EINTR || errno == EINPROGRESS)) { socklen_t len; fd_set wset;