freebsd-ports/net/pptpclient/files/patch-af
John Polstra 1693b265c1 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
2000-01-29 06:57:13 +00:00

12 lines
521 B
Plaintext

--- 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;