summaryrefslogtreecommitdiffstats
path: root/src/uri
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2017-10-20 13:23:40 -0400
committerChris Luke <chris_luke@comcast.com>2017-10-20 19:57:57 +0000
commit0fd6ad62aafa6edb011d306c8eda4c1c623f12ab (patch)
tree3fc0b1883e53f69c4b73188a363c00735bf4768a /src/uri
parente22aa7415403dea9db7e7ea83658f2020e6dabcb (diff)
VCL: Fix converity warning CID 177864
Change-Id: Id8578321381d14f9de827767ef0acf627f1535e4 Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'src/uri')
-rw-r--r--src/uri/sock_test_server.c4
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);