diff options
author | [anp/hsw] <sysop@880.ru> | 2021-03-13 21:06:58 +0700 |
---|---|---|
committer | [anp/hsw] <sysop@880.ru> | 2021-03-13 21:06:58 +0700 |
commit | 39981480b61f4712cbd5ec415e851f1d52fb04bf (patch) | |
tree | cee5234e91ad8421d8e10cc9ce8539bd7bf6acb5 /accel-pppd | |
parent | 6c2fb7f07692ec8d9aad971b177dbb8718bf391a (diff) | |
download | accel-ppp-39981480b61f4712cbd5ec415e851f1d52fb04bf.tar.gz accel-ppp-39981480b61f4712cbd5ec415e851f1d52fb04bf.zip |
Fix segmentation fault when radius section is missing
Diffstat (limited to 'accel-pppd')
-rw-r--r-- | accel-pppd/radius/radius.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/accel-pppd/radius/radius.c b/accel-pppd/radius/radius.c index 5563c945..139b8b81 100644 --- a/accel-pppd/radius/radius.c +++ b/accel-pppd/radius/radius.c @@ -1041,6 +1041,10 @@ static void radius_init(void) { const char *dict = NULL; struct conf_sect_t *s = conf_get_section("radius"); + + if (!s) + _exit(EXIT_FAILURE); + struct conf_option_t *opt1; rpd_pool = mempool_create(sizeof(struct radius_pd_t)); |