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

Commit

Permalink
unix: fix uv_freeaddrinfo() segfault on sunos
Browse files Browse the repository at this point in the history
The system freeaddrinfo() on SunOS does not handle NULL values graciously.
  • Loading branch information
bnoordhuis committed Oct 21, 2011
1 parent 7738306 commit 9da53df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/unix/core.c
Expand Up @@ -667,7 +667,8 @@ int uv_getaddrinfo(uv_loop_t* loop,


void uv_freeaddrinfo(struct addrinfo* ai) {
freeaddrinfo(ai);
if (ai)
freeaddrinfo(ai);
}


Expand Down

0 comments on commit 9da53df

Please sign in to comment.