diff options
| author | David M. Syzdek <david@syzdek.net> | 2022-03-23 22:22:03 -0800 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2022-03-23 22:22:03 -0800 |
| commit | 5ec796557ce4c3344fb0fb995ed4c31ec75c87fc (patch) | |
| tree | 799b026940207c6336797d5265adc93473ebfe9d /lib | |
| parent | b3aa580555e343b3ed1f29902dc2f6d940da9dc4 (diff) | |
| download | tinyrad-5ec796557ce4c3344fb0fb995ed4c31ec75c87fc.tar.gz tinyrad-5ec796557ce4c3344fb0fb995ed4c31ec75c87fc.tar.bz2 tinyrad-5ec796557ce4c3344fb0fb995ed4c31ec75c87fc.tar.xz tinyrad-5ec796557ce4c3344fb0fb995ed4c31ec75c87fc.zip | |
libtinyrad: fixing processing of TRAD_OPT_IPV4 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 8a17dba..f2db7bf 100644 --- a/lib/libtinyrad/lmemory.c +++ b/lib/libtinyrad/lmemory.c | |||
| @@ -737,7 +737,7 @@ tinyrad_set_option( | |||
| 737 | return(TRAD_EOPTERR); | 737 | return(TRAD_EOPTERR); |
| 738 | opts = tr->opts; | 738 | opts = tr->opts; |
| 739 | tinyrad_set_flag(&tr->opts, &tr->opts_neg, TRAD_IPV4, *((const int *)invalue) ); | 739 | tinyrad_set_flag(&tr->opts, &tr->opts_neg, TRAD_IPV4, *((const int *)invalue) ); |
| 740 | if (opts != tr->opts) | 740 | if ( (opts != tr->opts) && ((tr->trud)) ) |
| 741 | if ((rc = tinyrad_urldesc_resolve(tr->trud, tr->opts)) != TRAD_SUCCESS) | 741 | if ((rc = tinyrad_urldesc_resolve(tr->trud, tr->opts)) != TRAD_SUCCESS) |
| 742 | return(rc); | 742 | return(rc); |
| 743 | break; | 743 | break; |
