summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pppd
diff options
context:
space:
mode:
authorfjoe <fjoe@FreeBSD.org>2003-04-07 13:34:00 +0000
committerfjoe <fjoe@FreeBSD.org>2003-04-07 13:34:00 +0000
commita0a3e94922941f60bddb7d4cc4f9b0899c784f32 (patch)
tree27ab3dbafb7b6c1cfb804694d823c506c1c5adb4 /usr.sbin/pppd
parent3b255b5f8c5935f760a0f92a2444e71b568f1eb8 (diff)
downloadFreeBSD-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
Diffstat (limited to 'usr.sbin/pppd')
-rw-r--r--usr.sbin/pppd/lcp.c2
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.
OpenPOWER on IntegriCloud