server max protocol element 64
authorAndy Green <andy@warmcat.com>
Wed, 10 Aug 2016 21:36:08 +0000 (05:36 +0800)
committerAndy Green <andy@warmcat.com>
Wed, 10 Aug 2016 21:36:08 +0000 (05:36 +0800)
https://github.com/warmcat/libwebsockets/issues/601

lib/server.c

index b3b1a68..66e3035 100644 (file)
@@ -1005,7 +1005,7 @@ lws_handshake_server(struct lws *wsi, unsigned char **buf, size_t len)
        struct allocated_headers *ah;
        int protocol_len, n = 0, hit;
        char protocol_list[128];
-       char protocol_name[32];
+       char protocol_name[64];
        char *p;
 
        if (len >= 10000000) {