Skip to content

Commit

Permalink
Merge pull request traviscross#14 from msekletar/rhbz-969707
Browse files Browse the repository at this point in the history
dns: Fix segfault with mixed ipv4/ipv6 nameservers -- msekletar.
  • Loading branch information
rewolff committed Jun 6, 2013
2 parents 9df5282 + 59c1629 commit 16c6a85
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 16c6a85

Please sign in to comment.