From 3f7efb6f320afbc8de335932dd440b755979dd77 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Wed, 1 Mar 2017 17:16:13 +0000 Subject: [PATCH] fix typo that made an assignment instead of comparison --- sockssrv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sockssrv.c b/sockssrv.c index 754de07..ca8b5b9 100644 --- a/sockssrv.c +++ b/sockssrv.c @@ -230,7 +230,7 @@ static void copyloop(int fd1, int fd2) { send_error(fd1, EC_TTL_EXPIRED); return; case -1: - if(errno = EINTR) continue; + if(errno == EINTR) continue; else perror("select"); return; } -- 2.11.4.GIT