Changeset 8370fe1fbab1b851e9c6a9a125260764963f27da

Show
Ignore:
Timestamp:
12/19/09 23:27:20 (5 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1261265240 +0000
git-parent:

[b9b0b5720e7f0cebdbc138982e041d73c32419af]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1261265240 +0000
Message:

support namespaced names as well.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/modules/dns.c

    r9679460 r8370fe1  
    549549  ci->nrr = 0; 
    550550 
    551   if(!strcmp(check->name, "in-addr.arpa")) { 
     551  if(!strcmp(check->name, "in-addr.arpa") || 
     552     (strlen(check->name) >= sizeof("::in-addr.arpa") - 1 && 
     553      !strcmp(check->name + strlen(check->name) - sizeof("::in-addr.arpa") + 1, 
     554              "::in-addr.arpa"))) { 
    552555    /* in-addr.arpa defaults: 
    553556     *   nameserver to NULL