net: avoid infinite loop when receiving packets(CVE-2015-5278)