diff --git a/lib/url.c b/lib/url.c index 4ddafc1822..a0c90e7b34 100644 --- a/lib/url.c +++ b/lib/url.c @@ -692,6 +692,9 @@ CURLcode curl_connect(CURL *curl, CURLconnect **in_connect) conn->data = data; /* remember our daddy */ conn->state = CONN_INIT; + conn->upload_bufsize = UPLOAD_BUFSIZE; /* the smallest upload buffer size + we use */ + buf = data->buffer; /* this is our buffer */ #if 0