diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2010-10-25 16:21:25 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2010-10-25 16:21:25 +0400 |
commit | 788923a042b90bc5ff1922b9b46648c4f4c0218c (patch) | |
tree | 70ef58296a98960975d07dbeda504999396802ef /accel-pptpd/auth/auth_pap.c | |
parent | 5d039c59acb58eb90f8d1256245b2c99aea129b0 (diff) | |
download | accel-ppp-788923a042b90bc5ff1922b9b46648c4f4c0218c.tar.gz accel-ppp-788923a042b90bc5ff1922b9b46648c4f4c0218c.zip |
implemented chap-secrets module which reads username,password and ip address from pppd compatible chap-secrets file
Diffstat (limited to 'accel-pptpd/auth/auth_pap.c')
-rw-r--r-- | accel-pptpd/auth/auth_pap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/accel-pptpd/auth/auth_pap.c b/accel-pptpd/auth/auth_pap.c index e1b48bde..814d02db 100644 --- a/accel-pptpd/auth/auth_pap.c +++ b/accel-pptpd/auth/auth_pap.c @@ -170,7 +170,7 @@ static int pap_recv_req(struct pap_auth_data_t *p, struct pap_hdr_t *hdr) int ret, r; char *peer_id; char *passwd; - const char *passwd2; + char *passwd2; int peer_id_len; int passwd_len; uint8_t *ptr = (uint8_t*)(hdr + 1); @@ -204,6 +204,7 @@ static int pap_recv_req(struct pap_auth_data_t *p, struct pap_hdr_t *hdr) r = PWDB_DENIED; else r = PWDB_SUCCESS; + _free(passwd2); } if (r == PWDB_DENIED) { if (conf_ppp_verbose) |