mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-28 20:58:31 +00:00
The 'char *ip' variable was being allocated and zeroed but not being used or freed.
This commit is contained in:
1 parent
c8e8f94ffe
commit
7cf28a5623
1 file changed
-2
@@ -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;
|
||||||
|
|||||||
Reference in new issue
Block a user