diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-01-07 11:04:08 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-01-07 11:04:08 +0000 |
commit | c555e9e3709a76c46dc1c58eb823f17c9c7b7dc5 (patch) | |
tree | ff6eba128b6958a72a6b3eac7e32ba91a397b545 | |
parent | d26eaba6097cb8beb52216720b56454c77aff6a0 (diff) | |
download | rspamd-c555e9e3709a76c46dc1c58eb823f17c9c7b7dc5.tar.gz rspamd-c555e9e3709a76c46dc1c58eb823f17c9c7b7dc5.zip |
[Minor] Remove redundant strdup
-rw-r--r-- | src/libserver/dns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/dns.c b/src/libserver/dns.c index 03bb88b84..c23390a47 100644 --- a/src/libserver/dns.c +++ b/src/libserver/dns.c @@ -779,7 +779,7 @@ rspamd_dns_read_hosts_file (struct rspamd_config *cfg, rep->next = NULL; rep->prev = rep; rdns_resolver_set_fake_reply (dns_resolver->r, - g_strdup (*cur_name), rep->type, RDNS_RC_NOERROR, rep); + *cur_name, rep->type, RDNS_RC_NOERROR, rep); msg_debug_config ("added fake record %s -> %s from hosts file %s", *cur_name, rspamd_inet_address_to_string (addr), fname); cur_name ++; |