From 5da833d512870bfb4d39741df2bec7fad2969ebd Mon Sep 17 00:00:00 2001 From: Guillaume Nault Date: Wed, 21 Mar 2018 18:09:10 +0100 Subject: 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 --- accel-pppd/auth/auth_chap_md5.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'accel-pppd/auth') diff --git a/accel-pppd/auth/auth_chap_md5.c b/accel-pppd/auth/auth_chap_md5.c index 7968762f..309af8a6 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++; } -- cgit v1.2.3