Fix a potential stackoverflow issue

This commit is contained in:
Max Lv
2018-10-19 08:52:04 +08:00
parent 1acdb1997d
commit 482040a5dd
4 changed files with 14 additions and 14 deletions
+2
View File
@@ -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 **);