Browse Source

Actually set *expires_out in addressmap_rewrite.

Fixes 14193; bugfix on 35d08e30d, which went into 0.2.3.17-beta.
Nick Mathewson 9 years ago
parent
commit
2e1ed0815d
2 changed files with 5 additions and 1 deletions
  1. 4 0
      changes/bug14193
  2. 1 1
      src/or/addressmap.c

+ 4 - 0
changes/bug14193

@@ -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.

+ 1 - 1
src/or/addressmap.c

@@ -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);
 }