From 602834d8878248f5db0ed9bac2d935f1461222e0 Mon Sep 17 00:00:00 2001 From: Jacob Nevins Date: Sat, 7 Dec 2002 21:15:49 +0000 Subject: [PATCH] Fix write to freed memory in HTTP proxying. Things aren't entirely happy yet, though. [originally from svn r2285] --- proxy.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/proxy.c b/proxy.c index a02fc11c..c1aab15f 100644 --- a/proxy.c +++ b/proxy.c @@ -481,8 +481,7 @@ int proxy_http_negotiate (Proxy_Socket p, int change) sk_write(p->sub_socket, buf2, strlen(buf2)); } - sprintf(buf, "\r\n"); - sk_write(p->sub_socket, buf, strlen(buf)); + sk_write(p->sub_socket, "\r\n", strlen(buf)); p->state = 1; return 0;