Crash fix from Aaron Brown.

This commit is contained in:
Jef Poskanzer 2013-08-19 12:29:35 -07:00
parent 5c01581b32
commit 78a711169e

View File

@ -366,7 +366,7 @@ int
getsockdomain(int sock)
{
struct sockaddr sa;
socklen_t len;
socklen_t len = sizeof(sa);
if (getsockname(sock, &sa, &len) < 0)
return -1;