]> sourceware.org Git - glibc.git/commitdiff
nss_dns: Correct parentheses for the __glibc_unlikely argument
authorFlorian Weimer <fweimer@redhat.com>
Wed, 19 Apr 2017 17:34:42 +0000 (19:34 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 19 Apr 2017 20:19:17 +0000 (22:19 +0200)
This fixes commit bee05c9d58a34ec5886faf3b56ecaa56355d94bf.

ChangeLog
resolv/nss_dns/dns-host.c

index e8b81fcc2a472cf291bb88b08635282753720e69..0d6183dbe83c7516056e9a10c2be3c946ea4ef4d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2017-04-19  Florian Weimer  <fweimer@redhat.com>
+
+       * resolv/nss_dns/dns-host.c (getanswer_r): Fix parentheses.
+
 2017-04-19  Florian Weimer  <fweimer@redhat.com>
 
        * inet/rcmd.c (rresvport_af): Fix typo in comment.
index 7099d093f357e16cc73c126d28de2cae93397cea..f121aa3de73704ea57cab74704f9bb6955884dfc 100644 (file)
@@ -633,7 +633,7 @@ getanswer_r (const querybuf *answer, int anslen, const char *qname, int qtype,
                        packtmp, sizeof packtmp);
   if (n != -1 && __ns_name_ntop (packtmp, bp, linebuflen) == -1)
     {
-      if (__glibc_unlikely (errno) == EMSGSIZE)
+      if (__glibc_unlikely (errno == EMSGSIZE))
        goto too_small;
 
       n = -1;
This page took 0.168548 seconds and 5 git commands to generate.