about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/network/gethostbyname2_r.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/network/gethostbyname2_r.c b/src/network/gethostbyname2_r.c
index 49e4e531..0dc6dc00 100644
--- a/src/network/gethostbyname2_r.c
+++ b/src/network/gethostbyname2_r.c
@@ -30,7 +30,6 @@ int gethostbyname2_r(const char *name, int af,
 		buflen -= sizeof(char *)-i;
 	}
 
-	getaddrinfo(name, 0, &hint, &ai);
 	switch (getaddrinfo(name, 0, &hint, &ai)) {
 	case EAI_NONAME:
 		*err = HOST_NOT_FOUND;