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

lib/server.c

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