aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/x509/x509_crl.c
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2009-10-06 14:22:27 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2009-10-06 14:22:27 +0200
commitcf85e1319b7072a3a166ad1949a047eab610a4a6 (patch)
tree57a4d07ad164a79365c5c1e0b2ffafcc4c53fd9f /src/libstrongswan/plugins/x509/x509_crl.c
parentafdaa9e5bf465848ba24f983f01f0320cecaac8b (diff)
downloadstrongswan-cf85e1319b7072a3a166ad1949a047eab610a4a6.tar.bz2
strongswan-cf85e1319b7072a3a166ad1949a047eab610a4a6.tar.xz
streamlined output from get_validity()
Diffstat (limited to 'src/libstrongswan/plugins/x509/x509_crl.c')
-rw-r--r--src/libstrongswan/plugins/x509/x509_crl.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/libstrongswan/plugins/x509/x509_crl.c b/src/libstrongswan/plugins/x509/x509_crl.c
index 643f809c7..b9ef3218b 100644
--- a/src/libstrongswan/plugins/x509/x509_crl.c
+++ b/src/libstrongswan/plugins/x509/x509_crl.c
@@ -458,16 +458,8 @@ static private_x509_crl_t* get_ref(private_x509_crl_t *this)
static bool get_validity(private_x509_crl_t *this, time_t *when,
time_t *not_before, time_t *not_after)
{
- time_t t;
+ time_t t = when ? *when : time(NULL);
- if (when)
- {
- t = *when;
- }
- else
- {
- t = time(NULL);
- }
if (not_before)
{
*not_before = this->thisUpdate;