diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2011-01-26 22:47:10 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2011-01-26 22:47:10 +0300 |
commit | 419de8f6910e4fd5d442068ad5ae41b530169470 (patch) | |
tree | f28b69928983f8c772f40e873ce571379e9fa546 /accel-pppd/ctrl | |
parent | b997d19f3b6e3087bffb072dd326c4b5311143b5 (diff) | |
download | accel-ppp-xebd-419de8f6910e4fd5d442068ad5ae41b530169470.tar.gz accel-ppp-xebd-419de8f6910e4fd5d442068ad5ae41b530169470.zip |
dynamicaly check if radius module loaded (so not more require to rebuild project without RADIUS to switch to chap-secrets)
Diffstat (limited to 'accel-pppd/ctrl')
-rw-r--r-- | accel-pppd/ctrl/pppoe/pppoe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/pppoe/pppoe.c b/accel-pppd/ctrl/pppoe/pppoe.c index d718bed..c7612e2 100644 --- a/accel-pppd/ctrl/pppoe/pppoe.c +++ b/accel-pppd/ctrl/pppoe/pppoe.c @@ -311,7 +311,7 @@ static void connect_channel(struct pppoe_conn_t *conn) goto out_err_close; #ifdef RADIUS - if (conn->tr101) { + if (conn->tr101 && triton_module_loaded("radius")) { conn->radius.send_access_request = pppoe_rad_send_access_request; conn->radius.send_accounting_request = pppoe_rad_send_accounting_request; rad_register_plugin(&conn->ppp, &conn->radius); |