[PATCH 1/3] packet_get(): don't try to receive packet in case of error