mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
stop client_dns_clean from calling malloc(0)
svn:r831
This commit is contained in:
parent
4eabb8450e
commit
51de02bcb5
@ -902,6 +902,8 @@ void client_dns_clean(void)
|
||||
time_t now;
|
||||
int i;
|
||||
|
||||
if(!client_dns_size)
|
||||
return;
|
||||
expired_entries = tor_malloc(client_dns_size *
|
||||
sizeof(struct client_dns_entry *));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user