summaryrefslogtreecommitdiffstats
path: root/src/uri
diff options
context:
space:
mode:
authorflyingeagle23 <wang.hui56@zte.com.cn>2017-04-20 14:46:08 +0800
committerFlorin Coras <florin.coras@gmail.com>2017-04-21 15:00:03 +0000
commit77819f6ab4ac6525b51b92c78ea29e4b832a225b (patch)
tree95decdbc30c893f3862d98b32d7c8d741e7cbef8 /src/uri
parentdb42b7bdefef4f26601782e9e2cc35096e847544 (diff)
[VPP-703]uri_tcp_test segment fault when mp->retval reply -30
Change-Id: I9d2e1f3434f66d9ae9cf40fe9043d0c4b384ef44 Signed-off-by: flyingeagle23 <wang.hui56@zte.com.cn>
Diffstat (limited to 'src/uri')
-rwxr-xr-xsrc/uri/uri_tcp_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uri/uri_tcp_test.c b/src/uri/uri_tcp_test.c
index ca053a2c4ad..2e15d36c69b 100755
--- a/src/uri/uri_tcp_test.c
+++ b/src/uri/uri_tcp_test.c
@@ -192,7 +192,7 @@ vl_api_application_attach_reply_t_handler (vl_api_application_attach_reply_t *
if (mp->retval)
{
- uword *errp = hash_get (utm->error_string_by_error_number, mp->retval);
+ uword *errp = hash_get (utm->error_string_by_error_number, -mp->retval);
clib_warning ("attach failed: %s", *errp);
utm->state = STATE_FAILED;
return;