[VPP-703]uri_tcp_test segment fault when mp->retval reply -30

Change-Id: I9d2e1f3434f66d9ae9cf40fe9043d0c4b384ef44
Signed-off-by: flyingeagle23 <wang.hui56@zte.com.cn>
This commit is contained in:
flyingeagle23
2017-04-20 14:46:08 +08:00
committed by Florin Coras
parent db42b7bdef
commit 77819f6ab4

View File

@@ -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;