summaryrefslogtreecommitdiff
path: root/net-vpn/corkscrew/files/corkscrew-2.0-crlf-with-authfile.patch
blob: 1e750bc741153d24782b1823c81755e98b0c7869 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -ur corkscrew-2.0/corkscrew.c corkscrew-2.0.new/corkscrew.c
--- corkscrew-2.0/corkscrew.c	2001-08-23 14:27:32.000000000 -0400
+++ corkscrew-2.0.new/corkscrew.c	2018-04-03 11:06:53.268025605 -0400
@@ -219,7 +219,7 @@
 	strncat(uri, destport, sizeof(uri) - strlen(uri) - 1);
 	strncat(uri, " HTTP/1.0", sizeof(uri) - strlen(uri) - 1);
 	if ((argc == 6) || (argc == 7)) {
-		strncat(uri, "\nProxy-Authorization: Basic ", sizeof(uri) - strlen(uri) - 1);
+		strncat(uri, "\r\nProxy-Authorization: Basic ", sizeof(uri) - strlen(uri) - 1);
 		strncat(uri, base64_encode(up), sizeof(uri) - strlen(uri) - 1);
 	}
 	strncat(uri, linefeed, sizeof(uri) - strlen(uri) - 1);