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:
parent
c7558d5be1
commit
0bd42fde95
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue