diff --git a/Platform/user/rpc/rpc_client.c b/Platform/user/rpc/rpc_client.c index 39644bfd3..9bdb6a506 100755 --- a/Platform/user/rpc/rpc_client.c +++ b/Platform/user/rpc/rpc_client.c @@ -205,6 +205,7 @@ ret_code rpc_client_recall(rpc_client**pclient, char* service_name, ASSERT_RET_NO(code); rpc_client_destroy(client); client = NULL; + *pclient = NULL; } } @@ -218,7 +219,7 @@ ret_code rpc_client_recall(rpc_client**pclient, char* service_name, input, input_len, output, output_len); } - ASSERT_PTR(client, RET_NULLP); + ASSERT_PTR(client, RET_SENDERR); } return code;