mm_strdup instead of strdup

Signed-off-by: Kirill Rodriguez <theoden8@gmail.com>
This commit is contained in:
Kirill Rodriguez 2024-11-01 00:25:02 +00:00 committed by Kirill Rodriguez
parent 6f35d4dfe8
commit 23839cb096
No known key found for this signature in database
GPG Key ID: 2AA85EC2AD7F85EA

View File

@ -5427,7 +5427,7 @@ evdns_cache_lookup(struct evdns_base *base,
continue;
ai_new = evutil_new_addrinfo_(e->ai_addr, e->ai_addrlen, hints);
if (want_cname) {
ai_new->ai_canonname = strdup(e->ai_canonname);
ai_new->ai_canonname = mm_strdup(e->ai_canonname);
}
if (!ai_new) {
n_found = 0;