- Fix error cases when udp-connect is set and send() returns an error

(modified patch from Xin Li @delphij).
This commit is contained in:
George Thessalonikefs
2020-12-16 17:11:41 +01:00
parent 811cf6db0c
commit 08968baec1
6 changed files with 31 additions and 24 deletions
+1 -1
View File
@@ -1766,7 +1766,7 @@ struct comm_point* outnet_comm_point_for_http(struct outside_network* outnet,
}
int comm_point_send_udp_msg(struct comm_point *c, sldns_buffer* packet,
struct sockaddr* addr, socklen_t addrlen)
struct sockaddr* addr, socklen_t addrlen, int ATTR_UNUSED(is_connected))
{
struct fake_commpoint* fc = (struct fake_commpoint*)c;
struct replay_runtime* runtime = fc->runtime;