From 62e3d66cc626ae0d56c81e96d96beb7d1aa4e339 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 29 Jan 2014 23:47:24 +0100 Subject: http2: use FIRSTSOCKET instead of 0 to index the sockets array --- lib/http2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/http2.c b/lib/http2.c index 6df3511fe..b7edbc590 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -89,7 +89,7 @@ static ssize_t send_callback(nghttp2_session *h2, struct connectdata *conn = (struct connectdata *)userp; ssize_t written; CURLcode rc = - Curl_write(conn, conn->sock[0], data, length, &written); + Curl_write(conn, conn->sock[FIRSTSOCKET], data, length, &written); (void)h2; (void)flags; -- cgit v1.2.3