aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Chaffraix <julien.chaffraix@gmail.com>2010-09-10 00:26:37 -0700
committerDaniel Stenberg <daniel@haxx.se>2010-09-22 23:34:36 +0200
commit512a82d3950c1fc84783a0794a33ea471a517c1f (patch)
tree65a6e4bb78a2867707230a450f4f0ac116734d3f
parentfbb38de415b7bb7d743e53a7b4b887ffb12b3e5b (diff)
security.c: Remove out_buffer as it was never written into.
-rw-r--r--lib/security.c4
-rw-r--r--lib/urldata.h2
2 files changed, 1 insertions, 5 deletions
diff --git a/lib/security.c b/lib/security.c
index c79128abd..3a3f0e03b 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 9369dd853..4d6059152 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;