BUG/MEDIUM: ssl: fix off-by-one in NPN list allocation
authorWilly Tarreau <w@1wt.eu>
Fri, 12 Feb 2016 16:11:12 +0000 (17:11 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 12 Feb 2016 16:11:12 +0000 (17:11 +0100)
commit3724da126115d6ad0ccecbbcea05c54b4accaac4
treed695c2182ddd23acc1b7d2a5bf7753e30d70475a
parentbef6091cff924aebb6d0006642db50b23ab2ee23
BUG/MEDIUM: ssl: fix off-by-one in NPN list allocation

After seeing previous ALPN fix, I suspected that NPN code was wrong
as well, and indeed it was since ALPN was copied from it. This fix
must be backported into 1.6 and 1.5.
src/ssl_sock.c