From 0bd42fde954a823cf6fffb6e13bd3dd4900a01e2 Mon Sep 17 00:00:00 2001 From: Paul Yang Date: Wed, 11 Oct 2017 00:25:26 +0800 Subject: [PATCH] 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) --- test/sslapitest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1