The current code only initialises tp->snd_wnd before the ack processing when handling the ACK segment in the SYN-RCVD state only when the window scaling option is enabled. This patch ensures that the initialisation is done always to improve consistency.
This fixes the issue that the issue reported in PR235256 only shows up when having window scaling enabled.