Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
unix: fix dangling pointer free() bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Sep 19, 2011
1 parent 70e1032 commit 37e8bf2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/unix/core.c
Expand Up @@ -634,6 +634,9 @@ int uv_getaddrinfo(uv_loop_t* loop,
handle->hints = malloc(sizeof(struct addrinfo));
memcpy(&handle->hints, hints, sizeof(struct addrinfo));
}
else {
handle->hints = NULL;
}

/* TODO security! check lengths, check return values. */

Expand Down

0 comments on commit 37e8bf2

Please sign in to comment.