diff options
| author | Brian Somers <brian@FreeBSD.org> | 2002-05-22 21:17:13 +0000 |
|---|---|---|
| committer | Brian Somers <brian@FreeBSD.org> | 2002-05-22 21:17:13 +0000 |
| commit | d4ff125fc1fec74c399c257579bab89ad855676c (patch) | |
| tree | 64bfa117870ebd9caf2ee9bdde1fa5073d9f2962 | |
| parent | b08bf2de6403a99f7a290dfd88a4a5d0aa6bd979 (diff) | |
Notes
| -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 09bef0058d0f..ea24dd0ea3d3 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 2e577752ce26..3280ba075843 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]; |
