aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index 514a648dd..f3231436a 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -586,7 +586,7 @@ CURLcode curl_write(CURLconnect *c_conn, char *buf, size_t amount,
#endif
#ifdef KRB4
if(conn->sec_complete)
- bytes_written = sec_write(conn, conn->sockfd, buf, amount);
+ bytes_written = sec_write(conn, conn->writesockfd, buf, amount);
else
#endif
bytes_written = swrite(conn->writesockfd, buf, amount);