From 88451ce25b481574b7f5f076ee03c1dfe69696ac Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 6 Jul 2004 23:29:34 +0000 Subject: [PATCH] Yes, I did mean "else if". svn:r2016 --- src/common/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/util.c b/src/common/util.c index cc90495bec..21ede0580e 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -1712,7 +1712,7 @@ int tor_lookup_hostname(const char *name, uint32_t *addr) if (!*name) { /* Empty address is an error. */ return -1; - } if (tor_inet_aton(name, &iaddr)) { + } else if (tor_inet_aton(name, &iaddr)) { /* It's an IP. */ memcpy(addr, &iaddr.s_addr, 4); return 0;