WARNING != ERROR
This commit is contained in:
4
fiche.c
4
fiche.c
@@ -175,7 +175,7 @@ struct client_data get_client_address(struct sockaddr_in client_address)
|
||||
hostp = gethostbyaddr((const char *)&client_address.sin_addr.s_addr, sizeof(client_address.sin_addr.s_addr), AF_INET);
|
||||
if (hostp == NULL)
|
||||
{
|
||||
info("ERROR: Couldn't obtain client's hostname\n");
|
||||
info("WARNING: Couldn't obtain client's hostname\n");
|
||||
data.hostname = "n/a";
|
||||
}
|
||||
else
|
||||
@@ -184,7 +184,7 @@ struct client_data get_client_address(struct sockaddr_in client_address)
|
||||
hostaddrp = inet_ntoa(client_address.sin_addr);
|
||||
if (hostaddrp == NULL)
|
||||
{
|
||||
info("ERROR: Couldn't obtain client's address\n");
|
||||
info("WARNING: Couldn't obtain client's address\n");
|
||||
data.ip_address = "n/a";
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user