diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-09-23 12:05:36 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-09-23 12:05:36 +0100 |
commit | e4fcd0fcda0d192b068dc28eb317e09dc0eb3a12 (patch) | |
tree | 2c8db056f1cb0abd24299a1fb900527727e4a4fa /contrib/librdns/resolver.c | |
parent | 9029b54e9f2a3173391e630c8cff5758f2d56321 (diff) | |
download | rspamd-e4fcd0fcda0d192b068dc28eb317e09dc0eb3a12.tar.gz rspamd-e4fcd0fcda0d192b068dc28eb317e09dc0eb3a12.zip |
[Minor] Allow to skip IDN checks in rdns
Diffstat (limited to 'contrib/librdns/resolver.c')
-rw-r--r-- | contrib/librdns/resolver.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/contrib/librdns/resolver.c b/contrib/librdns/resolver.c index 98807f38e..3dd44012e 100644 --- a/contrib/librdns/resolver.c +++ b/contrib/librdns/resolver.c @@ -1049,18 +1049,19 @@ rdns_resolver_free (struct rdns_resolver *resolver) struct rdns_resolver * -rdns_resolver_new (void) +rdns_resolver_new (int flags) { - struct rdns_resolver *new; + struct rdns_resolver *new_resolver; - new = calloc (1, sizeof (struct rdns_resolver)); + new_resolver = calloc (1, sizeof (struct rdns_resolver)); - REF_INIT_RETAIN (new, rdns_resolver_free); + REF_INIT_RETAIN (new_resolver, rdns_resolver_free); - new->logger = rdns_logger_internal; - new->log_data = new; + new_resolver->logger = rdns_logger_internal; + new_resolver->log_data = new_resolver; + new_resolver->flags = flags; - return new; + return new_resolver; } void |