From: Razvan Becheriu Date: Mon, 23 Jan 2023 21:38:09 +0000 (+0200) Subject: [#2575] reset the callback to trivial std::function so that unloaded symbols in hooks... X-Git-Tag: Kea-2.2.1~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=341728131b859edcf7b8954e2c6367132b50d9e3;p=thirdparty%2Fkea.git [#2575] reset the callback to trivial std::function so that unloaded symbols in hooks do not lead to crash --- diff --git a/src/lib/asiolink/interval_timer.cc b/src/lib/asiolink/interval_timer.cc index 2cda9b0085..cc45d516e9 100644 --- a/src/lib/asiolink/interval_timer.cc +++ b/src/lib/asiolink/interval_timer.cc @@ -64,6 +64,7 @@ public: lock_guard lk (mutex_); timer_.cancel(); interval_ = 0; + cbfunc_ = std::function(); } /// @brief Get the timer interval.