aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-01-29 23:47:24 +0100
committerDaniel Stenberg <daniel@haxx.se>2014-01-29 23:47:24 +0100
commit62e3d66cc626ae0d56c81e96d96beb7d1aa4e339 (patch)
treef65dcbb9a306f15730b447095272de714acc89fb /lib
parentb451c10d1e9a80ada945f0f5e5e77de21c08a270 (diff)
http2: use FIRSTSOCKET instead of 0 to index the sockets array
Diffstat (limited to 'lib')
-rw-r--r--lib/http2.c2
1 files changed, 1 insertions, 1 deletions
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;