diff options
-rw-r--r-- | src/uri/sock_test_server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uri/sock_test_server.c b/src/uri/sock_test_server.c index bb95b950ad8..79e762def62 100644 --- a/src/uri/sock_test_server.c +++ b/src/uri/sock_test_server.c @@ -572,8 +572,8 @@ main (int argc, char **argv) #ifdef VCL_TEST num_ev = vppcom_epoll_wait (ssm->epfd, ssm->wait_events, SOCK_SERVER_MAX_EPOLL_EVENTS, 60.0); - if (rv < 0) - errno = -rv; + if (num_ev < 0) + errno = -num_ev; #else num_ev = epoll_wait (ssm->epfd, ssm->wait_events, SOCK_SERVER_MAX_EPOLL_EVENTS, 60000); |