Skip to content

Commit

Permalink
dns: Fix segfault with mixed ipv4/ipv6 nameservers
Browse files Browse the repository at this point in the history
Follow-up on bug #1154432.
  • Loading branch information
msekletar committed Jun 6, 2013
1 parent 9df5282 commit 59c1629
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dns.c
Original file line number Diff line number Diff line change
Expand Up @@ -1334,6 +1334,9 @@ void dns_ack6(void)
if ( addrcmp( (void *) &(from6->sin6_addr), (void *) &localhost6,
(int) AF_INET6 ) == 0 ) {
for (i = 0;i < NSCOUNT6;i++) {
if (!NSSOCKADDR6(i))
continue;

if ( addrcmp( (void *) &(NSSOCKADDR6(i)->sin6_addr),
(void *) &(from6->sin6_addr), (int) AF_INET6 ) == 0 ||
addrcmp( (void *) &(NSSOCKADDR6(i)->sin6_addr),
Expand Down

0 comments on commit 59c1629

Please sign in to comment.