[PATCH 1/3] getpacket(): do not return negative value as packet size in case of error