miniupnpc: fix while-loop condition

This commit is contained in:
Thomas Hipp 2015-10-09 15:18:08 +02:00
parent 570b7a3d00
commit 3c78e9c78c
1 changed files with 1 additions and 1 deletions

View File

@ -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;