ip_wire_dst++;
count--;
}
- // if (count) /* verify that we parsed all values */
- // ERROR "Could not parse ipv4hint SvcParamValue: "
+ if (count) /* verify that we parsed all values */
+ return LDNS_WIREPARSE_ERR_SYNTAX_IP4;
return LDNS_WIREPARSE_ERR_OK;
}
return 0; /* wireformat error, incorrect size or inet family */
w += sldns_str_print(s, slen, "=%s", ip_str);
- data += LDNS_IP4ADDRLEN / sizeof(uint16_t);
+ data += LDNS_IP4ADDRLEN;
while ((data_len -= LDNS_IP4ADDRLEN) > 0) {
if (inet_ntop(AF_INET, data, ip_str, sizeof(ip_str)) == NULL)
return 0; /* wireformat error, incorrect size or inet family */
w += sldns_str_print(s, slen, ",%s", ip_str);
- data += LDNS_IP4ADDRLEN / sizeof(uint16_t);
+ data += LDNS_IP4ADDRLEN;
}
}