diff options
| author | David M. Syzdek <david@syzdek.net> | 2022-03-21 22:14:56 -0800 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2022-03-21 22:14:56 -0800 |
| commit | c6999d946b4b8479cb4b95909c337587a2f95956 (patch) | |
| tree | 063c5a5647e6b21d5b1400b6d63b93df7e6d7283 /lib | |
| parent | 2aa0f0b72d0a5e938b4ae79f398a361801f9ecf7 (diff) | |
| download | tinyrad-c6999d946b4b8479cb4b95909c337587a2f95956.tar.gz tinyrad-c6999d946b4b8479cb4b95909c337587a2f95956.tar.bz2 tinyrad-c6999d946b4b8479cb4b95909c337587a2f95956.tar.xz tinyrad-c6999d946b4b8479cb4b95909c337587a2f95956.zip | |
libtinyrad: fixing tinyrad_conf_opt_bool()
Diffstat (limited to 'lib')
| -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 f98b209..3d0496e 100644 --- a/lib/libtinyrad/lconf.c +++ b/lib/libtinyrad/lconf.c | |||
| @@ -456,7 +456,7 @@ tinyrad_conf_opt_bool( | |||
| 456 | 456 | ||
| 457 | TinyRadDebug(TRAD_DEBUG_ARGS, " == %s( tr, %u, \"%s\" )", __func__, opt, ((boolean == TRAD_YES) ? "TRAD_YES" : "TRAD_NO")); | 457 | TinyRadDebug(TRAD_DEBUG_ARGS, " == %s( tr, %u, \"%s\" )", __func__, opt, ((boolean == TRAD_YES) ? "TRAD_YES" : "TRAD_NO")); |
| 458 | 458 | ||
| 459 | if ( ((dict)) && ( ((dict->opts | dict->opts_neg) & opt) != 0) ) | 459 | if ( ((dict)) && ( ((dict->opts | dict->opts_neg) & opt) == 0) ) |
| 460 | { | 460 | { |
| 461 | switch(boolean) | 461 | switch(boolean) |
| 462 | { | 462 | { |
| @@ -466,7 +466,7 @@ tinyrad_conf_opt_bool( | |||
| 466 | }; | 466 | }; |
| 467 | }; | 467 | }; |
| 468 | 468 | ||
| 469 | if ( ((tr)) && ( ((tr->opts | tr->opts_neg) & opt) != 0) ) | 469 | if ( ((tr)) && ( ((tr->opts | tr->opts_neg) & opt) == 0) ) |
| 470 | { | 470 | { |
| 471 | switch(boolean) | 471 | switch(boolean) |
| 472 | { | 472 | { |
