EAP: fix packet leak caused by ce087027ef

Caught and flagged in https://gitlab.com/wireshark/wireshark/-/merge_requests/6838#note_932484809
This commit is contained in:
Alexander Clouter 2022-05-02 17:11:29 +01:00
parent 2f31c09045
commit e75f6800ca
1 changed files with 4 additions and 4 deletions

View File

@ -1772,12 +1772,12 @@ dissect_eap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
memcpy(&pinfo_eapol, pinfo, sizeof(packet_info));
pinfo_conv = &pinfo_eapol;
if (eap_code == EAP_REQUEST) { /* server -> client */
copy_address(&pinfo_conv->src, &null_address);
copy_address(&pinfo_conv->dst, &pae_group_address);
copy_address_shallow(&pinfo_conv->src, &null_address);
copy_address_shallow(&pinfo_conv->dst, &pae_group_address);
pinfo_eapol.srcport = 443;
} else { /* client -> server */
copy_address(&pinfo_conv->src, &pae_group_address);
copy_address(&pinfo_conv->dst, &null_address);
copy_address_shallow(&pinfo_conv->src, &pae_group_address);
copy_address_shallow(&pinfo_conv->dst, &null_address);
pinfo_eapol.destport = 443;
}
} else {