diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-09-11 10:41:59 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-09-11 13:13:07 -0400 |
commit | 973c18bf0e84d14d8006a9ae97fde7f7fb97e404 (patch) | |
tree | 4f8172e13883e45ecff9295737cc82e20dac3602 /src/common/util.h | |
parent | 1c30e6abc93fa086a14d01d838066581a3657285 (diff) | |
download | tor-973c18bf0e84d14d8006a9ae97fde7f7fb97e404.tar.gz tor-973c18bf0e84d14d8006a9ae97fde7f7fb97e404.zip |
Fix assertion failure in tor_timegm.
Fixes bug 6811.
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.h b/src/common/util.h index d4771562ee..75de3422d7 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -232,7 +232,7 @@ int64_t tv_to_msec(const struct timeval *tv); int64_t tv_to_usec(const struct timeval *tv); long tv_udiff(const struct timeval *start, const struct timeval *end); long tv_mdiff(const struct timeval *start, const struct timeval *end); -time_t tor_timegm(struct tm *tm); +int tor_timegm(const struct tm *tm, time_t *time_out); #define RFC1123_TIME_LEN 29 void format_rfc1123_time(char *buf, time_t t); int parse_rfc1123_time(const char *buf, time_t *t); |