handle the error in alts_tsi_handshaker_result_create

pull/23309/head
yihuaz 5 years ago
parent e4973325a0
commit 7af03152ab
  1. 6
      src/core/tsi/alts/handshaker/alts_handshaker_client.cc

@ -263,7 +263,13 @@ void alts_handshaker_client_handle_response(alts_handshaker_client* c,
}
tsi_handshaker_result* result = nullptr;
if (is_handshake_finished_properly(resp)) {
tsi_result status =
alts_tsi_handshaker_result_create(resp, client->is_client, &result);
if (status != TSI_OK) {
gpr_log(GPR_ERROR, "alts_tsi_handshaker_result_create() failed");
handle_response_done(client, status, nullptr, 0, nullptr);
return;
}
alts_tsi_handshaker_result_set_unused_bytes(
result, &client->recv_bytes,
grpc_gcp_HandshakerResp_bytes_consumed(resp));

Loading…
Cancel
Save