When a SYN-ACK is received in SYN-SENT state, RFC 793 requires the validation of SEG.ACK as the first step.
If the ACK is not acceptable, the segment a RST segment is sent and the segment is dropped. Currently, the segment was partially processed.
This patch moves the check for the SEG.ACK validation up to the front as required.