diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-11-26 22:43:21 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-11-26 22:43:21 +0000 |
commit | 34150e9a86aa04d18248701b9327a6176bcfed0a (patch) | |
tree | 08dede1f1bdcc4485709c5db995f60dcb5a3a275 /src/libutil/upstream.c | |
parent | f95d624720c6a3c4a02256221dab2f4551f3abef (diff) | |
download | rspamd-34150e9a86aa04d18248701b9327a6176bcfed0a.tar.gz rspamd-34150e9a86aa04d18248701b9327a6176bcfed0a.zip |
[Minor] Save nameserver name when parsing upstreams from resolv.conf
Diffstat (limited to 'src/libutil/upstream.c')
-rw-r--r-- | src/libutil/upstream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/upstream.c b/src/libutil/upstream.c index 5d421b212..71b8de877 100644 --- a/src/libutil/upstream.c +++ b/src/libutil/upstream.c @@ -612,8 +612,8 @@ rspamd_upstreams_add_upstream (struct upstream_list *ups, const gchar *str, break; case RSPAMD_UPSTREAM_PARSE_NAMESERVER: addrs = g_ptr_array_sized_new (1); - ret = rspamd_parse_inet_address (&addr, str, strlen (str)); + up->name = rspamd_mempool_strdup (ups->ctx->pool, str); if (ret) { if (rspamd_inet_address_get_port (addr) == 0) { |