From: Wouter Wijngaards Date: Fri, 22 Jun 2007 14:24:00 +0000 (+0000) Subject: fixup in case the operator disables IPv4. X-Git-Tag: release-0.4~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=479273df3c84907e2757dc6a00b08bbcdf411085;p=thirdparty%2Funbound.git fixup in case the operator disables IPv4. git-svn-id: file:///svn/unbound/trunk@421 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/doc/Changelog b/doc/Changelog index 5542b3125..601be3db1 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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. diff --git a/services/outside_network.c b/services/outside_network.c index 2f144e9d2..764965705 100644 --- a/services/outside_network.c +++ b/services/outside_network.c @@ -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,