macos afsdb reinit resolver on address change

assume a new address means we probably have new resolver info; reinit
when we get the callback.

FIXES 126440

Change-Id: I0d5ac0576f2b2e90093b93974b0354cac35d84a3
Reviewed-on: http://gerrit.openafs.org/2622
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
Derrick Brashear 2010-08-28 17:19:45 -04:00
parent aaf9b4ddd5
commit 5aa8c5d979

View File

@ -406,6 +406,10 @@ afsd_update_addresses(CFRunLoopTimerRef timer, void *info)
} else
printf("ADVISEADDR: Error in specifying interface addresses:%s\n",
reason);
/* Since it's likely this means our DNS server changed, reinit now */
if (enable_afsdb)
res_init();
}
/* This function is called when the system's ip addresses may have changed. */