diff options
author | Xin LI <delphij@FreeBSD.org> | 2020-12-17 23:35:18 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2020-12-17 23:35:18 +0000 |
commit | 072fbfa38b24d202f4eac875ad2f93531dad7f7e (patch) | |
tree | 422b9fd0df5498178b5c36853f8dce553fc4a6e8 /services/outside_network.c | |
parent | c1dbcbf2d10cd99864ab0eb44358d9875ba0c0a5 (diff) |
Notes
Diffstat (limited to 'services/outside_network.c')
-rw-r--r-- | services/outside_network.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/services/outside_network.c b/services/outside_network.c index 11951adea7bc4..e87aba893d98e 100644 --- a/services/outside_network.c +++ b/services/outside_network.c @@ -1870,17 +1870,10 @@ randomize_and_send_udp(struct pending* pend, sldns_buffer* packet, int timeout) log_assert(pend->pc && pend->pc->cp); /* send it over the commlink */ - if(outnet->udp_connect) { - if(!comm_point_send_udp_msg(pend->pc->cp, packet, NULL, 0)) { - portcomm_loweruse(outnet, pend->pc); - return 0; - } - } else { - if(!comm_point_send_udp_msg(pend->pc->cp, packet, - (struct sockaddr*)&pend->addr, pend->addrlen)) { - portcomm_loweruse(outnet, pend->pc); - return 0; - } + if(!comm_point_send_udp_msg(pend->pc->cp, packet, + (struct sockaddr*)&pend->addr, pend->addrlen, outnet->udp_connect)) { + portcomm_loweruse(outnet, pend->pc); + return 0; } /* system calls to set timeout after sending UDP to make roundtrip |