BUG/MEDIUM: ssl: fix off-by-one in ALPN list allocation

The first time I tried it (1.6.3) I got a segmentation fault :(

After some investigation with gdb and valgrind I found the
problem. memcpy() copies past an allocated buffer in
"bind_parse_alpn". This patch fixes it.

[wt: this fix must be backported into 1.6 and 1.5]
(cherry picked from commit bef6091cff924aebb6d0006642db50b23ab2ee23)
(cherry picked from commit 9cc9c6db93841fd9395749ac6f3d0646ed41f3ab)
1 file changed