Fix detection of HTTP2 ALPN extension

This commit is contained in:
J Harper
2016-11-28 22:15:17 -08:00
parent ef6c5200e0
commit 9d559233d9

View File

@@ -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;
}