]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
fixup in case the operator disables IPv4.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 22 Jun 2007 14:24:00 +0000 (14:24 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 22 Jun 2007 14:24:00 +0000 (14:24 +0000)
git-svn-id: file:///svn/unbound/trunk@421 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
services/outside_network.c

index 5542b312565c438d1727a67017f3c9c824f4f3f2..601be3db1c0494f433e43b15744e4ed66b4034e8 100644 (file)
@@ -7,6 +7,7 @@
        - changed iterator so that it does not alter module_qstate.qinfo
          but keeps a chase query info. Also query_flags are not altered,
          the iterator uses chase_flags.
+       - fixup crash in case no ports for the family exist.
 
 21 June 2007: Wouter
        - Fixup secondary buffer in case of error callback.
index 2f144e9d252a3cd8ce251f6a75fc10a174f2026c..7649657055ade386b904ec9d77cc0e8610af1ffd 100644 (file)
@@ -734,6 +734,10 @@ pending_udp_query(struct outside_network* outnet, ldns_buffer* packet,
                return NULL;
        }
        select_port(outnet, pend, rnd);
+       if(!pend->c) {
+               pending_delete(outnet, pend);
+               return NULL;
+       }
 
        /* send it over the commlink */
        if(!comm_point_send_udp_msg(pend->c, packet, (struct sockaddr*)addr,