From c396c767e2abf4d15ce8bf485588f67dbe10c14e Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 10 Sep 2007 14:55:50 +0000 Subject: [PATCH] r15023@catbus: nickm | 2007-09-10 10:46:16 -0400 Add a missing begin-comment to the DNS_USE_OPENSSL_FOR_ID code in evdns.c. svn:r426 --- ChangeLog | 1 + evdns.c | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6f82da9b..dc11e975 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,3 +7,4 @@ Changes in current version: o Fix a memory leak in which failed HTTP connections whould not free the request object o Make adding of array members in event_rpcgen more efficient, but doubling memory allocation o Fix a memory leak in the DNS server + o Fix compilation when DNS_USE_OPENSSL_FOR_ID is enabled diff --git a/evdns.c b/evdns.c index 597f1093..a7593456 100644 --- a/evdns.c +++ b/evdns.c @@ -1037,9 +1037,11 @@ transaction_id_pick(void) { if (RAND_pseudo_bytes((u8 *) &trans_id, 2) == -1) { /* in the case that the RAND call fails we back */ /* down to using gettimeofday. */ - struct timeval tv; + /* + struct timeval tv; gettimeofday(&tv, NULL); - trans_id = tv.tv_usec & 0xffff; */ + trans_id = tv.tv_usec & 0xffff; + */ abort(); } #endif -- 2.50.0