Merge pull request #24601 from ZhenLian/zhen_spiffe_fix

Increment Index when parsing not plumbed SAN fields
pull/24629/head
ZhenLian 4 years ago committed by GitHub
commit 01cc519b53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/core/tsi/ssl_transport_security.cc

@ -410,6 +410,10 @@ static tsi_result add_subject_alt_names_properties_to_peer(
result = tsi_construct_string_peer_property_from_cstring(
TSI_X509_SUBJECT_ALTERNATIVE_NAME_PEER_PROPERTY, name,
&peer->properties[(*current_insert_index)++]);
} else {
result = tsi_construct_string_peer_property_from_cstring(
TSI_X509_SUBJECT_ALTERNATIVE_NAME_PEER_PROPERTY, "other types of SAN",
&peer->properties[(*current_insert_index)++]);
}
if (result != TSI_OK) break;
}

Loading…
Cancel
Save