From 2ed4680e22693cadfda9afef35216bc2b605ef3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= Date: Fri, 1 Jan 1999 06:38:39 +0100 Subject: [PATCH] Fixed call to inet_aton. Rev: src/io.c:1.39 --- src/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io.c b/src/io.c index f71373b8..9734c9be 100644 --- a/src/io.c +++ b/src/io.c @@ -481,7 +481,7 @@ get_inaddr(struct sockaddr_in * addr, /* First check for numerical ip-number */ #if 1 /* FIXME: How portable is inet_aton? */ - if (!inet_aton(host, addr)) + if (!inet_aton(host, &addr->sin_addr)) #else /* TODO: It is wrong to work with ((unsigned long int) -1) * directly, as this breaks Linux/Alpha systems. But -- GitLab