From 9d559233d9efa50c8a7f1328d8fa26c1291efd71 Mon Sep 17 00:00:00 2001 From: J Harper Date: Mon, 28 Nov 2016 22:15:17 -0800 Subject: [PATCH] Fix detection of HTTP2 ALPN extension --- matrixssl/extDecode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrixssl/extDecode.c b/matrixssl/extDecode.c index 7aac49f..3f124f1 100644 --- a/matrixssl/extDecode.c +++ b/matrixssl/extDecode.c @@ -693,7 +693,7 @@ static int dealWithAlpnExt(ssl_t *ssl, const unsigned char *c, unsigned short ex that here for checking later (in choosing cipher suite, etc). @see https://tools.ietf.org/html/rfc7540#section-9.2 */ - if ((ssl->alpnLen == 2) && memcmp(ssl->alpn, "h2", 2) = 0) { + if ((ssl->alpnLen == 2) && (memcmp(ssl->alpn, "h2", 2) == 0)) { ssl->flags |= SSL_FLAGS_HTTP2; }