Commit 7cf28a56 authored by Robert Di Paolo's avatar Robert Di Paolo

The 'char *ip' variable was being allocated and zeroed but not being used or freed.

parent c8e8f94f
...@@ -612,8 +612,6 @@ static int ns_resolve2(const char *host, struct in_addr *ina) { ...@@ -612,8 +612,6 @@ static int ns_resolve2(const char *host, struct in_addr *ina) {
int rv = 0; int rv = 0;
struct addrinfo hints, *servinfo, *p; struct addrinfo hints, *servinfo, *p;
struct sockaddr_in *h = NULL; struct sockaddr_in *h = NULL;
char *ip = NS_MALLOC(17);
memset(ip, '\0', 17);
memset(&hints, 0, sizeof hints); memset(&hints, 0, sizeof hints);
hints.ai_family = AF_INET; hints.ai_family = AF_INET;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment