mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-23 08:03:54 +00:00
Fix error handling when parsing the header
This commit is contained in:
+1
-1
@@ -548,7 +548,7 @@ static void server_recv_cb(EV_P_ ev_io *w, int revents)
|
||||
else if (p == tls_protocol->default_port)
|
||||
ret = tls_protocol->parse_packet(buf->array + 3 + abuf->len,
|
||||
buf->len - 3 - abuf->len, &hostname);
|
||||
if (ret == -1 || ret == -2) {
|
||||
if (ret == -1) {
|
||||
server->stage = 2;
|
||||
bfree(abuf);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user