]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix for #411: Depth protect for crash on deleted element timeout.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 8 Apr 2021 11:47:06 +0000 (13:47 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 8 Apr 2021 11:47:06 +0000 (13:47 +0200)
doc/Changelog
services/outside_network.c

index 66e6f9a481bbfbff4c5899e9f2e66f0d362d07bf..147775427cdd699530436cd088c8b0c226413345 100644 (file)
@@ -1,3 +1,6 @@
+7 April 2021: Wouter
+       - Fix for #411: Depth protect for crash on deleted element timeout.
+
 1 April 2021: Wouter
        - Merge #460 from orbea: build: Link with the libtool archive.
        - Fix to stop IPv6 PMTU discovery.
index 9769b7602d79e13f9ad73a0f3c7bac9c3aa22a02..d5340d8c23927f438bb1b8f5b0f58a06acf272aa 100644 (file)
@@ -721,7 +721,7 @@ static void
 waiting_tcp_callback(struct waiting_tcp* w, struct comm_point* c, int error,
        struct comm_reply* reply_info)
 {
-       if(w->cb) {
+       if(w && w->cb) {
                fptr_ok(fptr_whitelist_pending_tcp(w->cb));
                (void)(*w->cb)(c, w->cb_arg, error, reply_info);
        }