Lines Matching refs:head
356 struct dns_query *head, *curr, *prev; in parse_dns_qsection() local
360 for (i = 1, head = NULL, prev = NULL; i <= count; i++, prev = curr) { in parse_dns_qsection()
365 free_dns_query(head); in parse_dns_qsection()
368 if (head == NULL) in parse_dns_qsection()
369 head = curr; in parse_dns_qsection()
377 free_dns_query(head); in parse_dns_qsection()
382 free_dns_query(head); in parse_dns_qsection()
396 return (head); in parse_dns_qsection()
403 struct dns_rr *head, *curr, *prev; in parse_dns_rrsection() local
407 for (i = 1, head = NULL, prev = NULL; i <= count; i++, prev = curr) { in parse_dns_rrsection()
412 free_dns_rr(head); in parse_dns_rrsection()
415 if (head == NULL) in parse_dns_rrsection()
416 head = curr; in parse_dns_rrsection()
424 free_dns_rr(head); in parse_dns_rrsection()
429 free_dns_rr(head); in parse_dns_rrsection()
453 free_dns_rr(head); in parse_dns_rrsection()
460 return (head); in parse_dns_rrsection()