Skip to content

Commit 76089b3

Browse files
Fix PP2_SUBTYPE_AZURE_PRIVATEENDPOINT_LINKID parsing
1 parent d87d500 commit 76089b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/proxy_protocol.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,7 @@ static int32_t pp2_parse_hdr(uint8_t *buffer, uint32_t buffer_length, pp_info_t
10261026
}
10271027
pp2_tlv_azure_t *pp2_tlv_azure = (pp2_tlv_azure_t*) pp2_tlv->value;
10281028
/* Connection is done through Private Link service */
1029-
if (pp2_tlv_azure->type == PP2_TYPE_AZURE) /* 32-bit number */
1029+
if (pp2_tlv_azure->type == PP2_SUBTYPE_AZURE_PRIVATEENDPOINT_LINKID) /* 32-bit number */
10301030
{
10311031
pp2_tlv_t *tlv = tlv_new(pp2_tlv->type, pp2_tlv_len, pp2_tlv->value);
10321032
if (!tlv || !tlv_array_append_tlv(&pp_info->pp2_info.tlv_array, tlv))

0 commit comments

Comments
 (0)