From 77819f6ab4ac6525b51b92c78ea29e4b832a225b Mon Sep 17 00:00:00 2001 From: flyingeagle23 Date: Thu, 20 Apr 2017 14:46:08 +0800 Subject: [VPP-703]uri_tcp_test segment fault when mp->retval reply -30 Change-Id: I9d2e1f3434f66d9ae9cf40fe9043d0c4b384ef44 Signed-off-by: flyingeagle23 --- src/uri/uri_tcp_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/uri') diff --git a/src/uri/uri_tcp_test.c b/src/uri/uri_tcp_test.c index ca053a2c..2e15d36c 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; -- cgit 1.2.3-korg