"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "namedb.c" between
nsd-4.3.6.tar.gz and nsd-4.3.7.tar.gz

About: NSD is an authoritative only, high performance, simple name server daemon.

namedb.c  (nsd-4.3.6):namedb.c  (nsd-4.3.7)
skipping to change at line 582 skipping to change at line 582
/* the NS record in the parent zone above this zone is not present, /* the NS record in the parent zone above this zone is not present,
* workaround to find that parent zone anyway */ * workaround to find that parent zone anyway */
if(zone->apex->parent) if(zone->apex->parent)
return domain_find_zone(db, zone->apex->parent); return domain_find_zone(db, zone->apex->parent);
return NULL; return NULL;
} }
domain_type * domain_type *
domain_find_ns_rrsets(domain_type* domain, zone_type* zone, rrset_type **ns) domain_find_ns_rrsets(domain_type* domain, zone_type* zone, rrset_type **ns)
{ {
/* return highest NS RRset in the zone that is a delegation above */
domain_type* result = NULL;
while (domain && domain != zone->apex) { while (domain && domain != zone->apex) {
*ns = domain_find_rrset(domain, zone, TYPE_NS); *ns = domain_find_rrset(domain, zone, TYPE_NS);
if (*ns) if (*ns)
return domain; result = domain;
domain = domain->parent; domain = domain->parent;
} }
if(result)
return result;
*ns = NULL; *ns = NULL;
return NULL; return NULL;
} }
domain_type * domain_type *
find_dname_above(domain_type* domain, zone_type* zone) find_dname_above(domain_type* domain, zone_type* zone)
{ {
domain_type* d = domain->parent; domain_type* d = domain->parent;
while(d && d != zone->apex) { while(d && d != zone->apex) {
if(domain_find_rrset(d, zone, TYPE_DNAME)) if(domain_find_rrset(d, zone, TYPE_DNAME))
 End of changes. 3 change blocks. 
1 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)