about summary refs log tree commit diff
path: root/resolv/nss_dns
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-04-19 19:34:42 +0200
committerFlorian Weimer <fweimer@redhat.com>2017-04-19 22:19:17 +0200
commita0704b1ac7e8dc26f0e0feac58468958305ae844 (patch)
treefa47dc8ff1f31ebfbf4c78c7f47feb1f290eae20 /resolv/nss_dns
parentb8129a415ec68858d67747644ad868421a399a49 (diff)
downloadglibc-a0704b1ac7e8dc26f0e0feac58468958305ae844.tar.gz
glibc-a0704b1ac7e8dc26f0e0feac58468958305ae844.tar.xz
glibc-a0704b1ac7e8dc26f0e0feac58468958305ae844.zip
nss_dns: Correct parentheses for the __glibc_unlikely argument
This fixes commit bee05c9d58a34ec5886faf3b56ecaa56355d94bf.
Diffstat (limited to 'resolv/nss_dns')
-rw-r--r--resolv/nss_dns/dns-host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/resolv/nss_dns/dns-host.c b/resolv/nss_dns/dns-host.c
index 7099d093f3..f121aa3de7 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;