Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure all INIT have a verification tag of 0
RFC 4960 Section 8.5.1 specifies that a packet containing an INIT chunk MUST set the verificate tag of the packet to 0. The current code follows that only if it has not received and handled an INIT packet from the peer yet. In which case the peerVerificationTag will not be zero, and any subsequent INIT will be invalid and refused by the peer. This is a problem if the INIT ACK was lost. If both peers have this behavior, and both INIT ACKs were lost, we fall into a situation where the initialization will never complete. Resolve this scenario by ensuring the packet with the INIT chunk always set the tag to zero, as is required.
- Loading branch information