]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
removed duplicate condition in ldns_udp_send_query.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 23 Mar 2017 08:02:58 +0000 (09:02 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 23 Mar 2017 08:02:58 +0000 (09:02 +0100)
Changelog
net.c

index c7caf69f3afdd5457dd7816db2ffeb70bb0b7bd3..79f00aa15929eb00b782471200c2be98f132148e 100644 (file)
--- 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 9e048d2cd8226d9e76eef32691c5c4eea0d39631..db1981cb133b22eab0f1c57e09c5495984e8d206 100644 (file)
--- 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;
 }