Fix compilation with no-nextprotoneg.
[openssl.git] / ssl / t1_lib.c
index d7f5f907123825b5efb1944fd34b0d8b10840806..8b7cce65f308963191cb582294b3458e4093587c 100644 (file)
@@ -2436,8 +2436,10 @@ static int ssl_scan_clienthello_tlsext(SSL *s, unsigned char **p, unsigned char
                        {
                        if (tls1_alpn_handle_client_hello(s, data, size, al) != 0)
                                return 0;
+#ifndef OPENSSL_NO_NEXTPROTONEG
                        /* ALPN takes precedence over NPN. */
                        s->s3->next_proto_neg_seen = 0;
+#endif
                        }
 
                /* session ticket processed earlier */