mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
mm_strdup instead of strdup
Signed-off-by: Kirill Rodriguez <theoden8@gmail.com>
This commit is contained in:
parent
6f35d4dfe8
commit
23839cb096
2
evdns.c
2
evdns.c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user