summaryrefslogtreecommitdiff
path: root/accel-pppd/auth/auth_mschap_v1.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2014-06-17 17:14:26 +0400
committerDmitry Kozlov <xeb@mail.ru>2014-06-17 17:14:26 +0400
commitc69fb2ed39346fd5091a4e30606cb5bb866aa432 (patch)
tree757fb839c2a7a852a08ae36542f7e9cee2b55a7f /accel-pppd/auth/auth_mschap_v1.c
parent861ea516ec07b9a67567c439a6a4077d8a4fd518 (diff)
downloadaccel-ppp-xebd-c69fb2ed39346fd5091a4e30606cb5bb866aa432.tar.gz
accel-ppp-xebd-c69fb2ed39346fd5091a4e30606cb5bb866aa432.zip
auth_mschap,radius: fixed improper passing MS-CHAP-Error, Reply-Message to auth modules
Passed strings was not nullterminated
Diffstat (limited to 'accel-pppd/auth/auth_mschap_v1.c')
-rw-r--r--accel-pppd/auth/auth_mschap_v1.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/accel-pppd/auth/auth_mschap_v1.c b/accel-pppd/auth/auth_mschap_v1.c
index 0dcaffd..8491e2c 100644
--- a/accel-pppd/auth/auth_mschap_v1.c
+++ b/accel-pppd/auth/auth_mschap_v1.c
@@ -323,6 +323,8 @@ static void chap_recv_response(struct chap_auth_data_t *ad, struct chap_hdr_t *h
else
ppp_auth_failed(ad->ppp, name);
_free(name);
+ if (mschap_error != conf_msg_failure)
+ _free(mschap_error);
} else {
if (!ad->started) {
if (ppp_auth_succeeded(ad->ppp, name)) {