Displaying 1 result from an estimated 1 matches for "dname_to_str".
2012 Jul 23
1
[PATCH] nsd-patch: fix segfault after renaming slave zone
...}
zone->opts is filled in in difffile.c around line 675:
> zone->opts = zone_options_find(opt, domain_dname(zone->apex));
> if(!zone->opts) {
> log_msg(LOG_ERR, "xfr: zone %s not in config.",
> dname_to_string(zone_name,0));
> return 0;
> }
As a result, nsd-patch tries to dereference a null pointer when trying to
print zone name.
I think the proper fix is to move the code that adds zone structure to the
linked list at the very end of find_zone(). Attached patch fixes t...