diff options
Diffstat (limited to 'lib/gtls.c')
-rw-r--r-- | lib/gtls.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/gtls.c b/lib/gtls.c index 02680d02b..ee7612028 100644 --- a/lib/gtls.c +++ b/lib/gtls.c @@ -452,13 +452,12 @@ Curl_gtls_connect(struct connectdata *conn, /* return number of sent (non-SSL) bytes */ -int Curl_gtls_send(struct connectdata *conn, +ssize_t Curl_gtls_send(struct connectdata *conn, int sockindex, void *mem, size_t len) { - int rc; - rc = gnutls_record_send(conn->ssl[sockindex].session, mem, len); + ssize_t rc = gnutls_record_send(conn->ssl[sockindex].session, mem, len); if(rc < 0 ) { if(rc == GNUTLS_E_AGAIN) |