From 6ee6fa3100537bfbe10bef2c0e11b19b1a88ef84 Mon Sep 17 00:00:00 2001 From: solusipse Date: Mon, 16 Sep 2013 22:49:39 +0200 Subject: [PATCH] fixing hostname error problem --- fiche.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fiche.c b/fiche.c index 9488c09..04e4e5f 100755 --- a/fiche.c +++ b/fiche.c @@ -156,7 +156,8 @@ 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) { - nerror("ERROR: Couldn't obtain client's hostname"); + /*nerror("ERROR: Couldn't obtain client's hostname");*/ + printf("ERROR: Couldn't obtain client's hostname"); data.hostname = "error"; } else