diff options
author | fjoe <fjoe@FreeBSD.org> | 2003-04-07 13:34:00 +0000 |
---|---|---|
committer | fjoe <fjoe@FreeBSD.org> | 2003-04-07 13:34:00 +0000 |
commit | a0a3e94922941f60bddb7d4cc4f9b0899c784f32 (patch) | |
tree | 27ab3dbafb7b6c1cfb804694d823c506c1c5adb4 | |
parent | 3b255b5f8c5935f760a0f92a2444e71b568f1eb8 (diff) | |
download | FreeBSD-src-a0a3e94922941f60bddb7d4cc4f9b0899c784f32.zip FreeBSD-src-a0a3e94922941f60bddb7d4cc4f9b0899c784f32.tar.gz |
RFC1548, section 5.8:
Echo-Request and Echo-Reply packets may only be sent in the LCP
Opened state. Echo-Request and Echo-Reply packets received in any
state other than the LCP Opened state SHOULD be silently discarded.
PR: 45760
Submitted by: Eugene Grosbein
MFC after: 2 weeks
-rw-r--r-- | usr.sbin/pppd/lcp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/pppd/lcp.c b/usr.sbin/pppd/lcp.c index 7a88d57..7400987 100644 --- a/usr.sbin/pppd/lcp.c +++ b/usr.sbin/pppd/lcp.c @@ -1737,6 +1737,8 @@ LcpEchoCheck (f) fsm *f; { LcpSendEchoRequest (f); + if (f->state != OPENED) + return; /* * Start the timer for the next interval. |