Actually set *expires_out in addressmap_rewrite.

Fixes 14193; bugfix on 35d08e30d, which went into 0.2.3.17-beta.
This commit is contained in:
Nick Mathewson 2015-01-13 09:42:23 -05:00
parent bba995e666
commit 2e1ed0815d
2 changed files with 5 additions and 1 deletions

4
changes/bug14193 Normal file
View File

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

View File

@ -431,7 +431,7 @@ addressmap_rewrite(char *address, size_t maxlen,
if (exit_source_out) if (exit_source_out)
*exit_source_out = exit_source; *exit_source_out = exit_source;
if (expires_out) if (expires_out)
*expires_out = TIME_MAX; *expires_out = expires;
return (rewrites > 0); return (rewrites > 0);
} }