diff options
author | Roger Dingledine <arma@torproject.org> | 2003-11-18 00:02:24 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2003-11-18 00:02:24 +0000 |
commit | 51de02bcb523d52511e0e645b765bc5bc4790323 (patch) | |
tree | c79cec7400b9453d1ca94d197d168d3a84a8d6ca /src | |
parent | 4eabb8450ef4fab606d34ac33330d698663dbebf (diff) | |
download | tor-51de02bcb523d52511e0e645b765bc5bc4790323.tar.gz tor-51de02bcb523d52511e0e645b765bc5bc4790323.zip |
stop client_dns_clean from calling malloc(0)
svn:r831
Diffstat (limited to 'src')
-rw-r--r-- | src/or/connection_edge.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index 57f72e8808..4d36e07573 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 *)); |