Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

unix: fix dangling pointer free() bug

  • Loading branch information
bnoordhuis committed Sep 19, 2011
1 parent 70e1032 commit 37e8bf2556ff088ee6886299eac4a6f0883b354a
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/unix/core.c
@@ -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. */

0 comments on commit 37e8bf2

Please sign in to comment.
You can’t perform that action at this time.