MFC r362516: Fix crash in drill(1) when IP has two subsequent dots Cherry-pick crash fix from the upstream repo PR: 226575 Reported by: Goran Mekić <meka@tilda.center> Obtained from: https://git.nlnetlabs.nl/ldns/commit/?id=98291475