]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
And assertion.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 24 Apr 2018 15:16:16 +0000 (15:16 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 24 Apr 2018 15:16:16 +0000 (15:16 +0000)
git-svn-id: file:///svn/unbound/trunk@4661 be551aaa-1e26-0410-a405-d3ace91eadb9

util/ub_event.c

index f3bcba678babecc62f6aec73a1e2aedf26137dfb..78481a982055b57a73cee8a961a9c920d67a7c5e 100644 (file)
@@ -123,8 +123,11 @@ static void (*NATIVE_BITS_CB(void (*cb)(int, short, void*)))(int, short, void*)
                return my_tube_handle_signal;
        else if(cb == comm_base_handle_slow_accept)
                return my_comm_base_handle_slow_accept;
-       else
+       else {
+               log_assert(0); /* this NULL callback pointer should not happen,
+                       we should have the necessary routine listed above */
                return NULL;
+       }
 }
 #else 
 #  define NATIVE_BITS(b) (b)