]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Actually set *expires_out in addressmap_rewrite.
authorNick Mathewson <nickm@torproject.org>
Tue, 13 Jan 2015 14:42:23 +0000 (09:42 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 13 Jan 2015 14:42:23 +0000 (09:42 -0500)
Fixes 14193; bugfix on 35d08e30d, which went into 0.2.3.17-beta.

changes/bug14193 [new file with mode: 0644]
src/or/addressmap.c

diff --git a/changes/bug14193 b/changes/bug14193
new file mode 100644 (file)
index 0000000..a700668
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor bugfixes (client DNS):
+    - Report the correct cached DNS expiration times. Previously, we
+      would report everything as "never expires."  Fixes bug 14193;
+      bugfix on 0.2.3.17-beta.
index 8ad24323b5d761100de99752493e689b6127efa1..908d94faa192a159f057daf931cd7b6b1c72d173 100644 (file)
@@ -431,7 +431,7 @@ addressmap_rewrite(char *address, size_t maxlen,
   if (exit_source_out)
     *exit_source_out = exit_source;
   if (expires_out)
-    *expires_out = TIME_MAX;
+    *expires_out = expires;
   return (rewrites > 0);
 }