diff options
| author | David M. Syzdek <david@syzdek.net> | 2022-03-23 22:22:16 -0800 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2022-03-23 22:22:16 -0800 |
| commit | c8085d6a4f1ae5bc0da05b58b61ae34d64bd0834 (patch) | |
| tree | 858def9d6fcd5880369cdb1f1886aff09da1b239 /lib | |
| parent | 5ec796557ce4c3344fb0fb995ed4c31ec75c87fc (diff) | |
| download | tinyrad-c8085d6a4f1ae5bc0da05b58b61ae34d64bd0834.tar.gz tinyrad-c8085d6a4f1ae5bc0da05b58b61ae34d64bd0834.tar.bz2 tinyrad-c8085d6a4f1ae5bc0da05b58b61ae34d64bd0834.tar.xz tinyrad-c8085d6a4f1ae5bc0da05b58b61ae34d64bd0834.zip | |
libtinyrad: fixing processing of TRAD_OPT_IPV6 in tinyrad_set_option()
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libtinyrad/lmemory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libtinyrad/lmemory.c b/lib/libtinyrad/lmemory.c index f2db7bf..44def01 100644 --- a/lib/libtinyrad/lmemory.c +++ b/lib/libtinyrad/lmemory.c | |||
| @@ -748,7 +748,7 @@ tinyrad_set_option( | |||
| 748 | return(TRAD_EOPTERR); | 748 | return(TRAD_EOPTERR); |
| 749 | opts = tr->opts; | 749 | opts = tr->opts; |
| 750 | tinyrad_set_flag(&tr->opts, &tr->opts_neg, TRAD_IPV6, *((const int *)invalue) ); | 750 | tinyrad_set_flag(&tr->opts, &tr->opts_neg, TRAD_IPV6, *((const int *)invalue) ); |
| 751 | if (opts != tr->opts) | 751 | if ( (opts != tr->opts) && ((tr->trud)) ) |
| 752 | if ((rc = tinyrad_urldesc_resolve(tr->trud, tr->opts)) != TRAD_SUCCESS) | 752 | if ((rc = tinyrad_urldesc_resolve(tr->trud, tr->opts)) != TRAD_SUCCESS) |
| 753 | return(rc); | 753 | return(rc); |
| 754 | break; | 754 | break; |
