udpapi: Avoid out-of-bounds access on malformed packets
udpapi: Avoid out-of-bounds access on malformed packets

Also reports the strconv.ParseInt error if it's not possible to decode
the reply's code.

Kovensky/go-anidb