summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2018-03-21 18:09:10 +0100
committerDmitry Kozlov <xeb@mail.ru>2018-03-24 09:41:01 +0300
commit5da833d512870bfb4d39741df2bec7fad2969ebd (patch)
tree2690b48773a21805d454089f22b58eb202164c6d /accel-pppd
parent7c4b50b060a365c032fcf5f54db307b0f5ac2e41 (diff)
downloadaccel-ppp-xebd-5da833d512870bfb4d39741df2bec7fad2969ebd.tar.gz
accel-ppp-xebd-5da833d512870bfb4d39741df2bec7fad2969ebd.zip
auth: fix missing CHAP Success message in chap-md5
When pwdb returns PWDB_NO_IMPL, then chap_recv_response() tries to authenticate the peer itself. If this authentication succeeds but the session is already started (in case of re-authentication, with option conf_interval), no CHAP Success is sent. This patch sends the missing CHAP Success message in this case, so that the peer knows that its response has been received and accepted, and that no retransmission is required. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/auth/auth_chap_md5.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/accel-pppd/auth/auth_chap_md5.c b/accel-pppd/auth/auth_chap_md5.c
index 7968762..309af8a 100644
--- a/accel-pppd/auth/auth_chap_md5.c
+++ b/accel-pppd/auth/auth_chap_md5.c
@@ -382,8 +382,10 @@ static void chap_recv_response(struct chap_auth_data *ad, struct chap_hdr *hdr)
if (conf_interval)
triton_timer_add(ad->ppp->ses.ctrl->ctx, &ad->interval, 0);
}
- } else
+ } else {
+ chap_send_success(ad, ad->id);
_free(name);
+ }
ad->id++;
}