h->max_packet_size is being reset in the following code. Signed-off-by: Marton Balint <cus@passwd.hu>