mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-04 17:24:47 -04:00
When shutting down, the interface manager can be destroyed before the `route_connected()` callback is called, which is unexpected for the latter and can cause a crash. Move the interface manager attachment code from the callback to the place before the callback is registered using `isc_nm_routeconnect()` function, which will make sure that the interface manager will live at least until the callback is called. Make sure to detach the interface manager if the `isc_nm_routeconnect()` function is not implemented, or when the callback is called with a result value which differs from `ISC_R_SUCCESS`. |
||
|---|---|---|
| .. | ||
| include | ||
| client.c | ||
| hooks.c | ||
| interfacemgr.c | ||
| listenlist.c | ||
| log.c | ||
| Makefile.am | ||
| notify.c | ||
| query.c | ||
| server.c | ||
| sortlist.c | ||
| stats.c | ||
| tests | ||
| update.c | ||
| xfrout.c | ||