diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2012-02-16 00:17:09 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2012-02-16 00:17:09 +0400 |
commit | ccfc36744c585a4ea4fb5d5c4e183e9bbd293852 (patch) | |
tree | c6be0578a53af9035ee58620ae33b20cfd586038 /accel-pppd | |
parent | c465d6c6da36adc3a4160de6fe618ae1aeaa102f (diff) | |
parent | 2f1e0f49f260e5a5db71087d7d01842315ecb5ad (diff) | |
download | accel-ppp-ccfc36744c585a4ea4fb5d5c4e183e9bbd293852.tar.gz accel-ppp-ccfc36744c585a4ea4fb5d5c4e183e9bbd293852.zip |
Merge branch 'master' of ssh://accel-ppp.git.sourceforge.net/gitroot/accel-ppp/accel-ppp
Diffstat (limited to 'accel-pppd')
-rw-r--r-- | accel-pppd/ppp/ppp_ccp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/accel-pppd/ppp/ppp_ccp.c b/accel-pppd/ppp/ppp_ccp.c index 0814ace..ee32fbc 100644 --- a/accel-pppd/ppp/ppp_ccp.c +++ b/accel-pppd/ppp/ppp_ccp.c @@ -728,6 +728,11 @@ static void ccp_recv_proto_rej(struct ppp_handler_t *h) { struct ppp_ccp_t *ccp = container_of(h, typeof(*ccp), hnd); + if (!ccp->ld.passive) { + ppp_terminate(ccp->ppp, TERM_USER_ERROR, 0); + return; + } + if (ccp->fsm.fsm_state == FSM_Initial || ccp->fsm.fsm_state == FSM_Closed) return; |