From 71722dc80a762cd3f40bb60f4ce1a0621a8a879b Mon Sep 17 00:00:00 2001 From: bradh352 Date: Sat, 12 Sep 2020 08:51:24 -0400 Subject: [PATCH] fix indentation --- src/lib/ares_gethostbyname.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/ares_gethostbyname.c b/src/lib/ares_gethostbyname.c index 62567121..4e418984 100644 --- a/src/lib/ares_gethostbyname.c +++ b/src/lib/ares_gethostbyname.c @@ -276,16 +276,17 @@ static int fake_hostent(const char *name, int family, /* if we don't have 3 dots, it is illegal * (although inet_pton doesn't think so). */ - if (numdots != 3 || !valid) + if (numdots != 3 || !valid) { result = 0; - else + } else { result = (ares_inet_pton(AF_INET, name, &in) < 1 ? 0 : 1); + } /* * Set address family in case of failure, * as we will try to convert it later afterwards */ - family = result ? AF_INET : AF_INET6; + family = result ? AF_INET : AF_INET6; } if (family == AF_INET6) result = (ares_inet_pton(AF_INET6, name, &in6) < 1 ? 0 : 1);