summaryrefslogtreecommitdiff
path: root/accel-pppd/pwdb.c
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2013-01-24 23:58:56 +0400
committerKozlov Dmitry <xeb@mail.ru>2013-01-24 23:58:56 +0400
commitcf3de06a3346854d770ba147f081e3b22e93c1bc (patch)
tree0c1a138d292c140c2547361615bf556ff2b98f9f /accel-pppd/pwdb.c
parent35b55103979145284d63bc1db4ebd6e9d6666b34 (diff)
downloadaccel-ppp-cf3de06a3346854d770ba147f081e3b22e93c1bc.tar.gz
accel-ppp-cf3de06a3346854d770ba147f081e3b22e93c1bc.zip
backport 1.7
* l2tp: Fix allocation checking when adding octets AVP * cli, tcp: Fix non-NULL terminated string reception * Fix va_end() missing calls * chap-secrets: implemented encryption * auth_pap: make messages like other auth modules * cli: check xmit_buf is not null at enter to write function * pppoe: implemented regular expression support * chap-secrets: implemented encryption * ippool: fixed initialization order * optional shaper compiling * ppp: dns/wins code cleanup
Diffstat (limited to 'accel-pppd/pwdb.c')
-rw-r--r--accel-pppd/pwdb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/accel-pppd/pwdb.c b/accel-pppd/pwdb.c
index f4440b8f..5626c2c9 100644
--- a/accel-pppd/pwdb.c
+++ b/accel-pppd/pwdb.c
@@ -22,11 +22,13 @@ int __export pwdb_check(struct ap_session *ses, const char *username, int type,
r = pwdb->check(pwdb, ses, username, type, args);
if (r == PWDB_NO_IMPL)
continue;
- if (r == PWDB_SUCCESS)
- return PWDB_SUCCESS;
res = r;
+ if (r == PWDB_SUCCESS)
+ break;
}
+ va_end(args);
+
return res;
}
__export char *pwdb_get_passwd(struct ap_session *ses, const char *username)