diff options
| author | David M. Syzdek <david@syzdek.net> | 2022-03-23 22:18:32 -0800 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2022-03-23 22:18:32 -0800 |
| commit | 595d929dc5efdbc85f4e99b1b03095c9cc37b712 (patch) | |
| tree | f659ba2a58269a2eb5f435a7b762035dde1a0183 | |
| parent | 34e167d3737287f96ee7bc1b3799dcb3663edbe9 (diff) | |
| download | tinyrad-595d929dc5efdbc85f4e99b1b03095c9cc37b712.tar.gz tinyrad-595d929dc5efdbc85f4e99b1b03095c9cc37b712.tar.bz2 tinyrad-595d929dc5efdbc85f4e99b1b03095c9cc37b712.tar.xz tinyrad-595d929dc5efdbc85f4e99b1b03095c9cc37b712.zip | |
libtinyrad: fixing tinyrad_conf_opt() processing of 'ipv4'
| -rw-r--r-- | lib/libtinyrad/lconf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libtinyrad/lconf.c b/lib/libtinyrad/lconf.c index 7bc05a6..d9990c9 100644 --- a/lib/libtinyrad/lconf.c +++ b/lib/libtinyrad/lconf.c | |||
| @@ -375,8 +375,8 @@ tinyrad_conf_opt( | |||
| 375 | if ( (!(tr)) || ((tr->opts & TRAD_IPV4)) || ((tr->opts_neg & TRAD_IPV4)) ) | 375 | if ( (!(tr)) || ((tr->opts & TRAD_IPV4)) || ((tr->opts_neg & TRAD_IPV4)) ) |
| 376 | return(TRAD_SUCCESS); | 376 | return(TRAD_SUCCESS); |
| 377 | switch(i = ((value)) ? tinyrad_strtobool(value) : TRAD_YES) | 377 | switch(i = ((value)) ? tinyrad_strtobool(value) : TRAD_YES) |
| 378 | { case TRAD_NO: tinyrad_set_option(tr, TRAD_IPV4, &i); break; | 378 | { case TRAD_NO: tinyrad_set_option(tr, TRAD_OPT_IPV4, &i); break; |
| 379 | case TRAD_YES: tinyrad_set_option(tr, TRAD_IPV4, &i); break; | 379 | case TRAD_YES: tinyrad_set_option(tr, TRAD_OPT_IPV4, &i); break; |
| 380 | default: break; | 380 | default: break; |
| 381 | }; | 381 | }; |
| 382 | return(TRAD_SUCCESS); | 382 | return(TRAD_SUCCESS); |
