diff options
author | brian <brian@FreeBSD.org> | 2002-05-22 21:17:13 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2002-05-22 21:17:13 +0000 |
commit | debad274d2013c4921a36d464e79a0f67a31b983 (patch) | |
tree | 64bfa117870ebd9caf2ee9bdde1fa5073d9f2962 /usr.sbin/ppp | |
parent | e2e6ae2d7a76580ca7974ee06a0f1304f928e5cb (diff) | |
download | FreeBSD-src-debad274d2013c4921a36d464e79a0f67a31b983.zip FreeBSD-src-debad274d2013c4921a36d464e79a0f67a31b983.tar.gz |
Increase the maximum FSM option length to 50
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r-- | usr.sbin/ppp/fsm.c | 4 | ||||
-rw-r--r-- | usr.sbin/ppp/fsm.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/fsm.c b/usr.sbin/ppp/fsm.c index 09bef00..ea24dd0 100644 --- a/usr.sbin/ppp/fsm.c +++ b/usr.sbin/ppp/fsm.c @@ -1144,9 +1144,9 @@ fsm_readopt(u_char **cp) *cp += o->hdr.len; if (o->hdr.len > sizeof(struct fsm_opt)) { + log_Printf(LogERROR, "Warning: Truncating option length from %d to %d\n", + o->hdr.len, sizeof(struct fsm_opt)); o->hdr.len = sizeof(struct fsm_opt); - log_Printf(LogERROR, "Warning: Truncating option length to %d\n", - o->hdr.len); } return o; diff --git a/usr.sbin/ppp/fsm.h b/usr.sbin/ppp/fsm.h index 2e57775..3280ba0 100644 --- a/usr.sbin/ppp/fsm.h +++ b/usr.sbin/ppp/fsm.h @@ -166,7 +166,7 @@ struct fsm_opt_hdr { u_char len; }; -#define MAX_FSM_OPT_LEN 20 +#define MAX_FSM_OPT_LEN 52 struct fsm_opt { struct fsm_opt_hdr hdr; u_char data[MAX_FSM_OPT_LEN-2]; |