diff options
-rw-r--r-- | src/core/network.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/network.c b/src/core/network.c index 4494dbc6..b38c9102 100644 --- a/src/core/network.c +++ b/src/core/network.c @@ -489,6 +489,7 @@ int net_gethostbyaddr(IPADDR *ip, char **name) int net_ip2host(IPADDR *ip, char *host) { + host[0] = '\0'; return inet_ntop(ip->family, &ip->ip, host, MAX_IP_LEN) ? 0 : -1; } |