summaryrefslogtreecommitdiff
path: root/src/or/hs_descriptor.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2017-08-17 23:12:59 +0300
committerGeorge Kadianakis <desnacked@riseup.net>2017-08-21 19:16:30 +0300
commit45732a1a13cb05107f5822afed0c01388096be27 (patch)
tree0a3192305a89d88aa92f6aa31aed30fb8a4af13c /src/or/hs_descriptor.c
parent72832086e2144158308b30133aa15b39f0d2eb5d (diff)
downloadtor-45732a1a13cb05107f5822afed0c01388096be27.tar.gz
tor-45732a1a13cb05107f5822afed0c01388096be27.zip
Add unittest for #23233.
This will fail currently since the bug is not fixed yet.
Diffstat (limited to 'src/or/hs_descriptor.c')
-rw-r--r--src/or/hs_descriptor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/hs_descriptor.c b/src/or/hs_descriptor.c
index 2a000f5002..7c2e76942a 100644
--- a/src/or/hs_descriptor.c
+++ b/src/or/hs_descriptor.c
@@ -1241,7 +1241,7 @@ cert_is_valid(tor_cert_t *cert, uint8_t type, const char *log_obj_type)
}
/* The following will not only check if the signature matches but also the
* expiration date and overall validity. */
- if (tor_cert_checksig(cert, &cert->signing_key, time(NULL)) < 0) {
+ if (tor_cert_checksig(cert, &cert->signing_key, approx_time()) < 0) {
log_warn(LD_REND, "Invalid signature for %s.", log_obj_type);
goto err;
}