]> granicus.if.org Git - curl/commitdiff
gtls: fix build with HTTP2
authorAlessandro Ghedini <alessandro@ghedini.me>
Thu, 19 Feb 2015 15:44:27 +0000 (16:44 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 19 Feb 2015 18:00:51 +0000 (19:00 +0100)
lib/vtls/gtls.c

index f9812ca5b4376d2b415bcf136092ecc641702901..5b9188349088e1e9a538f75d7a6ba337f1f12a3d 100644 (file)
@@ -626,7 +626,7 @@ gtls_connect_step1(struct connectdata *conn,
       gnutls_alpn_set_protocols(session, protocols, protocols_size, 0);
       infof(data, "ALPN, offering %s, %s\n", NGHTTP2_PROTO_VERSION_ID,
             ALPN_HTTP_1_1);
-      connssl->asked_for_h2 = TRUE;
+      conn->ssl[sockindex].asked_for_h2 = TRUE;
     }
     else {
       infof(data, "SSL, can't negotiate HTTP/2.0 without ALPN\n");
@@ -1083,7 +1083,7 @@ gtls_connect_step3(struct connectdata *conn,
         conn->negnpn = NPN_HTTP1_1;
       }
     }
-    else if(connssl->asked_for_h2) {
+    else if(conn->ssl[sockindex].asked_for_h2) {
       infof(data, "ALPN, server did not agree to a protocol\n");
     }
   }