Fix a bug in ALPN comparation code of a test case

Reviewed-by: Ben Kaduk <kaduk@mit.edu>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4497)
This commit is contained in:
Paul Yang 2017-10-11 00:25:26 +08:00 committed by Matt Caswell
parent c7558d5be1
commit 0bd42fde95

View file

@ -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;