mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 07:52:25 +00:00
Merge pull request #1757
5c3badb7
dns_utils: fix infinite recursion when distributing empty dns_urls (anonimal)
This commit is contained in:
commit
41060f2090
1 changed files with 3 additions and 0 deletions
|
@ -478,6 +478,9 @@ namespace
|
||||||
|
|
||||||
bool load_txt_records_from_dns(std::vector<std::string> &good_records, const std::vector<std::string> &dns_urls)
|
bool load_txt_records_from_dns(std::vector<std::string> &good_records, const std::vector<std::string> &dns_urls)
|
||||||
{
|
{
|
||||||
|
// Prevent infinite recursion when distributing
|
||||||
|
if (dns_urls.empty()) return false;
|
||||||
|
|
||||||
std::vector<std::vector<std::string> > records;
|
std::vector<std::vector<std::string> > records;
|
||||||
records.resize(dns_urls.size());
|
records.resize(dns_urls.size());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue