From: Alan T. DeKok Date: Thu, 21 Sep 2017 15:12:42 +0000 (-0400) Subject: udp_send() may return an error X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=085c19a9916c538b951bd20475bba8134f451c28;p=thirdparty%2Ffreeradius-server.git udp_send() may return an error --- diff --git a/src/modules/proto_radius/proto_radius_udp.c b/src/modules/proto_radius/proto_radius_udp.c index 687ca7d3e98..9e679913470 100644 --- a/src/modules/proto_radius/proto_radius_udp.c +++ b/src/modules/proto_radius/proto_radius_udp.c @@ -351,6 +351,8 @@ static ssize_t mod_write(void *instance, void *packet_ctx, &address->dst_ipaddr, address->dst_port, address->if_index, &address->src_ipaddr, address->src_port); + if (data_size < 0) return data_size; + } else { /* * Otherwise lie, and say we've written it all...