From 512a82d3950c1fc84783a0794a33ea471a517c1f Mon Sep 17 00:00:00 2001 From: Julien Chaffraix Date: Fri, 10 Sep 2010 00:26:37 -0700 Subject: [PATCH] security.c: Remove out_buffer as it was never written into. --- lib/security.c | 4 ---- lib/urldata.h | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/security.c b/lib/security.c index c79128a..3a3f0e0 100644 --- a/lib/security.c +++ b/lib/security.c @@ -291,10 +291,6 @@ int Curl_sec_fflush_fd(struct connectdata *conn, int fd) { if(conn->data_prot != prot_clear) { - if(conn->out_buffer.index > 0){ - sec_write(conn, fd, conn->out_buffer.data, conn->out_buffer.index); - conn->out_buffer.index = 0; - } sec_send(conn, fd, NULL, 0); } return 0; diff --git a/lib/urldata.h b/lib/urldata.h index 9369dd8..4d60591 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -806,7 +806,7 @@ struct connectdata { enum protection_level data_prot; enum protection_level request_data_prot; size_t buffer_size; - struct krb4buffer in_buffer, out_buffer; + struct krb4buffer in_buffer; void *app_data; const struct Curl_sec_client_mech *mech; struct sockaddr_in local_addr; -- 2.7.4