提交 0bd42fde 编写于 作者: P Paul Yang 提交者: Matt Caswell

Fix a bug in ALPN comparation code of a test case

Reviewed-by: NBen Kaduk <kaduk@mit.edu>
Reviewed-by: NMatt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4497)
上级 c7558d5b
......@@ -1987,7 +1987,7 @@ static int alpn_select_cb(SSL *ssl, const unsigned char **out,
return SSL_TLSEXT_ERR_NOACK;
if (protlen == strlen(servalpn)
&& memcmp(prot, "goodalpn", protlen) == 0) {
&& memcmp(prot, servalpn, protlen) == 0) {
*out = prot;
*outlen = protlen;
return SSL_TLSEXT_ERR_OK;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册