[VPP-704]./uri_tcp_test slave , uri test segment fault
Change-Id: I19dcc3fcf85c63dc7a7f35e023f6269c9f233d3b Signed-off-by: flyingeagle23 <wang.hui56@zte.com.cn>
This commit is contained in:
committed by
Florin Coras
parent
e212506138
commit
db42b7bdef
Regular → Executable
+2
-1
@@ -487,7 +487,8 @@ vl_api_connect_uri_reply_t_handler (vl_api_connect_uri_reply_t * mp)
|
||||
|
||||
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,
|
||||
-clib_net_to_host_u32 (mp->retval));
|
||||
clib_warning ("connection failed with code: %s", *errp);
|
||||
utm->state = STATE_FAILED;
|
||||
return;
|
||||
|
||||
Regular → Executable
+1
-1
@@ -180,7 +180,7 @@ send_session_connected_callback (u32 app_index, u32 api_context,
|
||||
}
|
||||
else
|
||||
{
|
||||
mp->retval = VNET_API_ERROR_SESSION_CONNECT_FAIL;
|
||||
mp->retval = clib_host_to_net_u32 (VNET_API_ERROR_SESSION_CONNECT_FAIL);
|
||||
}
|
||||
|
||||
vl_msg_api_send_shmem (q, (u8 *) & mp);
|
||||
|
||||
Reference in New Issue
Block a user