diff options
author | Daniel Stenberg <daniel@haxx.se> | 2015-01-09 21:55:31 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-01-09 21:55:52 +0100 |
commit | e6b4b4b66de17117a718c512c583cf4c1662d702 (patch) | |
tree | 68229223a27d9dba745889d1f98c3a34558b349b /lib | |
parent | 355bf01c828af16c47ab52bccb9ade769f8bf158 (diff) |
NSS: fix compiler error when built http2-enabled
Diffstat (limited to 'lib')
-rw-r--r-- | lib/vtls/nss.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/vtls/nss.c b/lib/vtls/nss.c index dd83a9d68..37fe48079 100644 --- a/lib/vtls/nss.c +++ b/lib/vtls/nss.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -659,6 +659,8 @@ static void HandshakeCallback(PRFileDesc *sock, void *arg) unsigned int buflen; SSLNextProtoState state; + struct ssl_connect_data *connssl = &conn->ssl[FIRSTSOCKET]; + if(!conn->data->set.ssl_enable_npn && !conn->data->set.ssl_enable_alpn) { return; } |