- memset(a, 0, sizeof(*a));
- a->type = __cpu_to_be16(dns_reply[i].type);
- a->class = __cpu_to_be16(1);
- a->ttl = __cpu_to_be32(announce_ttl);
- a->rdlength = __cpu_to_be16(dns_reply[i].rdlength);
-
- len = dn_comp(answer, buffer, sizeof(buffer), NULL, NULL);
- if (len < 1)
- return;
+ answer_len = dn_comp(answer, buffer, sizeof(buffer), NULL, NULL);
+ if (answer_len < 1)
+ return;