nss_dns: Correct parentheses for the __glibc_unlikely argument

This fixes commit bee05c9d58.
This commit is contained in:
Florian Weimer 2017-04-19 19:34:42 +02:00
parent b8129a415e
commit a0704b1ac7
2 changed files with 5 additions and 1 deletions

View File

@ -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> 2017-04-19 Florian Weimer <fweimer@redhat.com>
* inet/rcmd.c (rresvport_af): Fix typo in comment. * inet/rcmd.c (rresvport_af): Fix typo in comment.

View File

@ -633,7 +633,7 @@ getanswer_r (const querybuf *answer, int anslen, const char *qname, int qtype,
packtmp, sizeof packtmp); packtmp, sizeof packtmp);
if (n != -1 && __ns_name_ntop (packtmp, bp, linebuflen) == -1) if (n != -1 && __ns_name_ntop (packtmp, bp, linebuflen) == -1)
{ {
if (__glibc_unlikely (errno) == EMSGSIZE) if (__glibc_unlikely (errno == EMSGSIZE))
goto too_small; goto too_small;
n = -1; n = -1;