bind9/lib/ns
Aram Sargsyan 12aefe6ced Fix a race condition between shutdown and route_connected()
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`.

(cherry picked from commit f6e729635f)
2022-06-14 14:57:23 +00:00
..
include Move all the unit tests to /tests/<libname>/ 2022-05-31 12:06:00 +02:00
client.c Remove task exclusive mode from ns_clientmgr 2022-04-26 15:56:30 +02:00
hooks.c Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
interfacemgr.c Fix a race condition between shutdown and route_connected() 2022-06-14 14:57:23 +00:00
listenlist.c Add support for Strict/Mutual TLS into BIND 2022-04-28 13:39:21 +03:00
log.c Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
Makefile.am Move all the unit tests to /tests/<libname>/ 2022-05-31 12:06:00 +02:00
notify.c Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
query.c Cleanup: always count ns_statscounter_recursclients 2022-05-14 00:59:09 -07:00
server.c Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
sortlist.c Add isc_rwlock around dns_aclenv .localhost and .localnets member 2022-04-26 14:21:57 +02:00
stats.c Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
tests Move all the unit tests to /tests/<libname>/ 2022-05-31 12:06:00 +02:00
update.c Log "not authoritative for update zone" more clearly 2022-03-30 13:19:46 +01:00
xfrout.c Remove use of the inline keyword used as suggestion to compiler 2022-03-25 08:42:18 +01:00