mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-28 19:53:46 +00:00
Fix #1334
This commit is contained in:
+3
-2
@@ -459,13 +459,14 @@ create_server_socket(const char *host, const char *port)
|
||||
close(server_sock);
|
||||
}
|
||||
|
||||
if (result)
|
||||
freeaddrinfo(result);
|
||||
|
||||
if (rp == NULL) {
|
||||
LOGE("[udp] cannot bind");
|
||||
return -1;
|
||||
}
|
||||
|
||||
freeaddrinfo(result);
|
||||
|
||||
return server_sock;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user