Skip to content

Commit

Permalink
Added output in log when an IP is null
Browse files Browse the repository at this point in the history
IP can be null if the hostname cannot be resolved or it's a bad IP
  • Loading branch information
lcharette committed Oct 12, 2014
1 parent b54f89c commit 1d97636
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/sock.c
Expand Up @@ -176,6 +176,12 @@ static void ape_connect_name_cb(char *ip, void *data, acetables *g_ape)
} }


free(ip); 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->sock);
free(asca); free(asca);
Expand Down

0 comments on commit 1d97636

Please sign in to comment.