diff --git a/src/io.c b/src/io.c index f71373b865537ba92db45dbf221726649e903396..9734c9bee53887c7de265b2e287be813fd67b7e5 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