Commit cad0ca75 authored by Jari Aalto's avatar Jari Aalto

debian/patches/20-corkscrew.c.patch: new

parent ba6f7b8e
From 3ae3e35200b97cdf0fed0c540d25e2ba12b20ab1 Mon Sep 17 00:00:00 2001
From: Jari Aalto <jari.aalto@cante.net>
Date: Sun, 28 Feb 2010 18:12:11 +0200
Subject: [PATCH] Debian change (Thomas Seyrat)
Signed-off-by: Jari Aalto <jari.aalto@cante.net>
---
corkscrew.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/corkscrew.c b/corkscrew.c
index d81d14e..78a4a62 100644
--- a/corkscrew.c
+++ b/corkscrew.c
@@ -176,6 +176,7 @@ char *argv[];
#endif
char *host = NULL, *desthost = NULL, *destport = NULL;
char *up = NULL;
+ char *tmp = NULL;
int port, sent, setup, code, csock;
fd_set rfd, sfd;
struct timeval tv;
@@ -262,6 +263,11 @@ char *argv[];
fprintf(stderr, "Proxy could not open connnection to %s: %s\n", desthost, descr);
exit(-1);
}
+ if (tmp = strstr(buffer,"\r\n\r\n"))
+ {
+ tmp += 4;
+ write(1, tmp, strlen(tmp));
+ }
}
}
if (FD_ISSET(csock, &sfd) && (sent == 0)) {
--
1.6.6.1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment