diff options
author | jdp <jdp@FreeBSD.org> | 2000-01-29 14:57:13 +0800 |
---|---|---|
committer | jdp <jdp@FreeBSD.org> | 2000-01-29 14:57:13 +0800 |
commit | f602ed0914080d541d0df55f65de00ddab3c00b2 (patch) | |
tree | e945955acdfdbf6c1ca550191cff7bbbd4a35434 | |
parent | 33cc1908d22ed70e2a8ef01e7bd6ca1a4137867c (diff) | |
download | freebsd-ports-gnome-f602ed0914080d541d0df55f65de00ddab3c00b2.tar.gz freebsd-ports-gnome-f602ed0914080d541d0df55f65de00ddab3c00b2.tar.zst freebsd-ports-gnome-f602ed0914080d541d0df55f65de00ddab3c00b2.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
-rw-r--r-- | net/pptpclient/files/patch-af | 11 |
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; |