From: Florian Weimer Date: Wed, 19 Apr 2017 17:34:42 +0000 (+0200) Subject: nss_dns: Correct parentheses for the __glibc_unlikely argument X-Git-Tag: glibc-2.26~589 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a0704b1ac7e8dc26f0e0feac58468958305ae844;p=thirdparty%2Fglibc.git nss_dns: Correct parentheses for the __glibc_unlikely argument This fixes commit bee05c9d58a34ec5886faf3b56ecaa56355d94bf. --- diff --git a/ChangeLog b/ChangeLog index e8b81fcc2a4..0d6183dbe83 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2017-04-19 Florian Weimer + + * resolv/nss_dns/dns-host.c (getanswer_r): Fix parentheses. + 2017-04-19 Florian Weimer * inet/rcmd.c (rresvport_af): Fix typo in comment. diff --git a/resolv/nss_dns/dns-host.c b/resolv/nss_dns/dns-host.c index 7099d093f35..f121aa3de73 100644 --- a/resolv/nss_dns/dns-host.c +++ b/resolv/nss_dns/dns-host.c @@ -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;