Permalink
Browse files

Added output in log when an IP is null

IP can be null if the hostname cannot be resolved or it's a bad IP
  • Loading branch information...
1 parent b54f89c commit 1d9763693d6aad8f9b2d5fb31a2a9bc31dcf94a0 @lcharette lcharette committed Oct 12, 2014
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/sock.c
View
@@ -176,6 +176,12 @@ static void ape_connect_name_cb(char *ip, void *data, acetables *g_ape)
}
free(ip);
+ } else {
+
+ if (!g_ape->is_daemon) {
+ printf("sockClient : No IP found / Invalid Hostname\n");
+ }
+ ape_log(APE_ERR, __FILE__, __LINE__, g_ape, "sockClient : No IP found / Invalid Hostname");
}
free(asca->sock);
free(asca);

0 comments on commit 1d97636

Please sign in to comment.