aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
Diffstat (limited to 'src/or')
-rw-r--r--src/or/connection_edge.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 57f72e880..4d36e0757 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -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 *));