mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-02-15 16:48:05 -05:00
- In unbound-host use separate variable for get_option to please
code checkers.
This commit is contained in:
parent
d05d6b959a
commit
57f2582790
2 changed files with 8 additions and 3 deletions
|
|
@ -1,3 +1,7 @@
|
|||
18 November 2019: Wouter
|
||||
- In unbound-host use separate variable for get_option to please
|
||||
code checkers.
|
||||
|
||||
13 November 2019: Wouter
|
||||
- iana portlist updated.
|
||||
- contrib/fastrpz.patch updated to apply for current code.
|
||||
|
|
|
|||
|
|
@ -426,6 +426,7 @@ int main(int argc, char* argv[])
|
|||
int c;
|
||||
char* qclass = NULL;
|
||||
char* qtype = NULL;
|
||||
char* use_syslog = NULL;
|
||||
struct ub_ctx* ctx = NULL;
|
||||
int debuglevel = 0;
|
||||
|
||||
|
|
@ -486,11 +487,11 @@ int main(int argc, char* argv[])
|
|||
}
|
||||
if(debuglevel != 0) /* set after possible -C options */
|
||||
check_ub_res(ub_ctx_debuglevel(ctx, debuglevel));
|
||||
if(ub_ctx_get_option(ctx, "use-syslog", &optarg) == 0) {
|
||||
if(strcmp(optarg, "yes") == 0) /* disable use-syslog */
|
||||
if(ub_ctx_get_option(ctx, "use-syslog", &use_syslog) == 0) {
|
||||
if(strcmp(use_syslog, "yes") == 0) /* disable use-syslog */
|
||||
check_ub_res(ub_ctx_set_option(ctx,
|
||||
"use-syslog:", "no"));
|
||||
free(optarg);
|
||||
free(use_syslog);
|
||||
}
|
||||
argc -= optind;
|
||||
argv += optind;
|
||||
|
|
|
|||
Loading…
Reference in a new issue