]> granicus.if.org Git - python/commitdiff
bpo-30622: Fix backport of NPN fix (#6102)
authorChristian Heimes <christian@python.org>
Wed, 14 Mar 2018 06:40:20 +0000 (07:40 +0100)
committerGitHub <noreply@github.com>
Wed, 14 Mar 2018 06:40:20 +0000 (07:40 +0100)
Fix backport a79591cf of bpo-30622 to 3.6 branch.

Signed-off-by: Christian Heimes <christian@python.org>
Modules/_ssl.c

index 2fe696daa5e1eff6953bcd712d74aba29aab94f3..c54e43c2b48a84cf625f1991d42e12f83caaa78b 100644 (file)
@@ -2747,7 +2747,7 @@ _ssl__SSLContext_impl(PyTypeObject *type, int proto_version)
         return NULL;
     }
     self->ctx = ctx;
-#ifdef HAVE_NPN
+#if HAVE_NPN
     self->npn_protocols = NULL;
 #endif
 #if HAVE_ALPN