Fix processing of CIDRs with mask 0