Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tcp: coverity the ERRNO_AGAIN() checks positive values
  • Loading branch information
perexg committed May 23, 2016
1 parent 18db7cb commit 1b1686d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tcp.c
Expand Up @@ -671,7 +671,7 @@ tcp_server_loop(void *aux)
while(atomic_get(&tcp_server_running)) {
r = tvhpoll_wait(tcp_server_poll, &ev, 1, -1);
if(r < 0) {
if (ERRNO_AGAIN(r))
if (ERRNO_AGAIN(-r))
continue;
tvherror("tcp", "tcp_server_loop: tvhpoll_wait: %s", strerror(errno));
continue;
Expand Down

0 comments on commit 1b1686d

Please sign in to comment.