From: W.C.A. Wijngaards Date: Thu, 23 Mar 2017 08:02:58 +0000 (+0100) Subject: removed duplicate condition in ldns_udp_send_query. X-Git-Tag: release-1.7.1-rc1~79^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6797067a33d59942ad20d599ba2baf40259c2d1a;p=thirdparty%2Fldns.git removed duplicate condition in ldns_udp_send_query. --- diff --git a/Changelog b/Changelog index c7caf69f..79f00aa1 100644 --- a/Changelog +++ b/Changelog @@ -2,6 +2,7 @@ * ldns-notify can use all supported hash algorithms with -y. * bugfix #1209: make install ldns.pc file Thanks Oleksandr Natalenko + * removed duplicate condition in ldns_udp_send_query. 1.7.0 2016-12-20 * Fix lookup of relative names in ldns_resolver_search. diff --git a/net.c b/net.c index 9e048d2c..db1981cb 100644 --- a/net.c +++ b/net.c @@ -676,9 +676,6 @@ ldns_udp_send_query(ldns_buffer *qbin, int sockfd, const struct sockaddr_storage if (bytes == -1 || (size_t)bytes != ldns_buffer_position(qbin)) { return 0; } - if ((size_t) bytes != ldns_buffer_position(qbin)) { - return 0; - } return bytes; }