/[packages]/cauldron/corkscrew/current/SOURCES/corkscrew-2.0.20060404-firstpacket.patch
ViewVC logotype

Contents of /cauldron/corkscrew/current/SOURCES/corkscrew-2.0.20060404-firstpacket.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 174658 - (show annotations) (download)
Wed Nov 30 23:38:22 2011 UTC (12 years, 4 months ago) by blino
File size: 714 byte(s)
uncompress patches
1 diff -Nur corkscrew-2.0.orig/corkscrew.c corkscrew-2.0/corkscrew.c
2 --- corkscrew-2.0.orig/corkscrew.c 2001-08-23 20:27:32.000000000 +0200
3 +++ corkscrew-2.0/corkscrew.c 2006-04-04 16:12:43.000000000 +0200
4 @@ -176,6 +176,7 @@
5 #endif
6 char *host = NULL, *desthost = NULL, *destport = NULL;
7 char *up = NULL;
8 + char *tmp = NULL;
9 int port, sent, setup, code, csock;
10 fd_set rfd, sfd;
11 struct timeval tv;
12 @@ -262,6 +263,11 @@
13 fprintf(stderr, "Proxy could not open connnection to %s: %s\n", desthost, descr);
14 exit(-1);
15 }
16 + if (tmp = strstr(buffer, "\r\n\r\n"))
17 + {
18 + tmp += 4;
19 + write(1, tmp, strlen(tmp));
20 + }
21 }
22 }
23 if (FD_ISSET(csock, &sfd) && (sent == 0)) {

  ViewVC Help
Powered by ViewVC 1.1.30