]> granicus.if.org Git - curl/commitdiff
NSS: fix compiler error when built http2-enabled
authorDaniel Stenberg <daniel@haxx.se>
Fri, 9 Jan 2015 20:55:31 +0000 (21:55 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 9 Jan 2015 20:55:52 +0000 (21:55 +0100)
lib/vtls/nss.c

index dd83a9d684a12448e867ae1fcae9eaed114c8d45..37fe48079b32d860425de749fb93e63ed8a67d2f 100644 (file)
@@ -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;
   }