Changeset View
Changeset View
Standalone View
Standalone View
net/shadowsocks-libev/files/patch-src_server.c
- This file was added.
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- src/server.c.orig 2019-04-25 15:38:42 UTC | |||||
+++ src/server.c | |||||
@@ -751,7 +751,7 @@ server_recv_cb(EV_P_ ev_io *w, int revents) | |||||
int offset = 0; | |||||
int need_query = 0; | |||||
char atyp = server->buf->data[offset++]; | |||||
- char host[257] = { 0 }; | |||||
+ char host[255] = { 0 }; | |||||
uint16_t port = 0; | |||||
struct addrinfo info; | |||||
struct sockaddr_storage storage; |