Skip to content

Commit

Permalink
Fix a bug in ALPN comparation code of a test case
Browse files Browse the repository at this point in the history
Reviewed-by: Ben Kaduk <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
(Merged from openssl#4497)
  • Loading branch information
InfoHunter authored and mattcaswell committed Oct 16, 2017
1 parent c7558d5 commit 0bd42fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/sslapitest.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0bd42fd

Please sign in to comment.