fixup in case the operator disables IPv4.

git-svn-id: file:///svn/unbound/trunk@421 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2007-06-22 14:24:00 +00:00
parent 9a1813e0bf
commit 479273df3c
2 changed files with 5 additions and 0 deletions

View file

@ -7,6 +7,7 @@
- changed iterator so that it does not alter module_qstate.qinfo - changed iterator so that it does not alter module_qstate.qinfo
but keeps a chase query info. Also query_flags are not altered, but keeps a chase query info. Also query_flags are not altered,
the iterator uses chase_flags. the iterator uses chase_flags.
- fixup crash in case no ports for the family exist.
21 June 2007: Wouter 21 June 2007: Wouter
- Fixup secondary buffer in case of error callback. - Fixup secondary buffer in case of error callback.

View file

@ -734,6 +734,10 @@ pending_udp_query(struct outside_network* outnet, ldns_buffer* packet,
return NULL; return NULL;
} }
select_port(outnet, pend, rnd); select_port(outnet, pend, rnd);
if(!pend->c) {
pending_delete(outnet, pend);
return NULL;
}
/* send it over the commlink */ /* send it over the commlink */
if(!comm_point_send_udp_msg(pend->c, packet, (struct sockaddr*)addr, if(!comm_point_send_udp_msg(pend->c, packet, (struct sockaddr*)addr,