From: Paul Yang Date: Tue, 10 Oct 2017 16:25:26 +0000 (+0800) Subject: Fix a bug in ALPN comparation code of a test case X-Git-Tag: OpenSSL_1_1_1-pre1~549 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0bd42fde954a823cf6fffb6e13bd3dd4900a01e2;p=oweals%2Fopenssl.git Fix a bug in ALPN comparation code of a test case Reviewed-by: Ben Kaduk Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/4497) --- diff --git a/test/sslapitest.c b/test/sslapitest.c index 3412aff17f..6267ce8e92 100644 --- a/test/sslapitest.c +++ b/test/sslapitest.c @@ -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;