aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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;