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/extra/pppd_compat.c | |
parent | b997d19f3b6e3087bffb072dd326c4b5311143b5 (diff) | |
download | accel-ppp-419de8f6910e4fd5d442068ad5ae41b530169470.tar.gz accel-ppp-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/extra/pppd_compat.c')
-rw-r--r-- | accel-pppd/extra/pppd_compat.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/accel-pppd/extra/pppd_compat.c b/accel-pppd/extra/pppd_compat.c index 66f54535..5fa9bebf 100644 --- a/accel-pppd/extra/pppd_compat.c +++ b/accel-pppd/extra/pppd_compat.c @@ -531,7 +531,9 @@ static void __init init(void) triton_event_register_handler(EV_PPP_FINISHING, (triton_event_func)ev_ppp_finishing); triton_event_register_handler(EV_PPP_FINISHED, (triton_event_func)ev_ppp_finished); #ifdef RADIUS - triton_event_register_handler(EV_RADIUS_ACCESS_ACCEPT, (triton_event_func)ev_radius_access_accept); - triton_event_register_handler(EV_RADIUS_COA, (triton_event_func)ev_radius_coa); + if (triton_module_loaded("radius")) { + triton_event_register_handler(EV_RADIUS_ACCESS_ACCEPT, (triton_event_func)ev_radius_access_accept); + triton_event_register_handler(EV_RADIUS_COA, (triton_event_func)ev_radius_coa); + } #endif } |