aboutsummaryrefslogtreecommitdiff
path: root/net/pptpclient
diff options
context:
space:
mode:
authorJohn Polstra <jdp@FreeBSD.org>2000-01-29 06:57:13 +0000
committerJohn Polstra <jdp@FreeBSD.org>2000-01-29 06:57:13 +0000
commit1693b265c101e9f168f753571b6b87b2618463c6 (patch)
treec823d75395e4f982489c15f438fa05bb736e9722 /net/pptpclient
parentfe11e34f92f2134a8ddfe7261633708d67576eac (diff)
downloadports-1693b265c101e9f168f753571b6b87b2618463c6.tar.gz
ports-1693b265c101e9f168f753571b6b87b2618463c6.zip
Handle an invalid result code of 0 in Start-Control-Connection-Reply
packets. A popular ADSL service in Korea sends this result code. It is wrong, but the patch doesn't harm anybody else. PR: ports/16372 Submitted by: CHOI Junho <cjh@kr.FreeBSD.ORG> Reviewed by: jdp
Notes
Notes: svn path=/head/; revision=25230
Diffstat (limited to 'net/pptpclient')
-rw-r--r--net/pptpclient/files/patch-af11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/pptpclient/files/patch-af b/net/pptpclient/files/patch-af
new file mode 100644
index 000000000000..e47e99662601
--- /dev/null
+++ b/net/pptpclient/files/patch-af
@@ -0,0 +1,11 @@
+--- pptp_ctrl.c~ Thu Feb 19 07:42:14 1998
++++ pptp_ctrl.c Sun Nov 14 11:12:03 1999
+@@ -513,7 +513,7 @@
+ close_reason = PPTP_STOP_PROTOCOL;
+ goto pptp_conn_close;
+ }
+- if (ntoh8(packet->result_code)!=1) { /* some problem with start */
++ if (ntoh8(packet->result_code)!=1 && ntoh8(packet->result_code)!=0) { /* some problem with start */
+ /* if result_code == 5, we might fall back to different version */
+ if (conn->callback!=NULL) conn->callback(conn, CONN_OPEN_FAIL);
+ close_reason = PPTP_STOP_PROTOCOL;