aboutsummaryrefslogtreecommitdiff
path: root/lib/vtls
diff options
context:
space:
mode:
authorAlessandro Ghedini <alessandro@ghedini.me>2015-02-19 16:44:27 +0100
committerDaniel Stenberg <daniel@haxx.se>2015-02-19 19:00:51 +0100
commit676ac46ff55cf58c3c3005d8ee2c80da3a99e6a0 (patch)
treeb06688f365bb19073a3df000b2d774e30f943718 /lib/vtls
parent31c8f8ac11c18e264dba4a3d81f0525507815b56 (diff)
gtls: fix build with HTTP2
Diffstat (limited to 'lib/vtls')
-rw-r--r--lib/vtls/gtls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/vtls/gtls.c b/lib/vtls/gtls.c
index f9812ca5b..5b9188349 100644
--- a/lib/vtls/gtls.c
+++ b/lib/vtls/gtls.c
@@ -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");
}
}