mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-19 04:04:18 +00:00
Fix a potential stackoverflow issue
This commit is contained in:
@@ -26,6 +26,8 @@
|
||||
#ifndef PROTOCOL_H
|
||||
#define PROTOCOL_H
|
||||
|
||||
#define MAX_HOSTNAME_LEN 256
|
||||
|
||||
typedef struct protocol {
|
||||
const int default_port;
|
||||
int(*const parse_packet) (const char *, size_t, char **);
|
||||
|
||||
Reference in New Issue
Block a user