summaryrefslogtreecommitdiff
path: root/src/pki/commands/signcrl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pki/commands/signcrl.c')
-rw-r--r--src/pki/commands/signcrl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pki/commands/signcrl.c b/src/pki/commands/signcrl.c
index 50f939687..ca208a5cf 100644
--- a/src/pki/commands/signcrl.c
+++ b/src/pki/commands/signcrl.c
@@ -124,7 +124,7 @@ static int sign_crl()
char *arg, *cacert = NULL, *cakey = NULL, *lastupdate = NULL, *error = NULL;
char *basecrl = NULL;
char serial[512], *keyid = NULL;
- int serial_len = 0;
+ int serial_len;
crl_reason_t reason = CRL_REASON_UNSPECIFIED;
time_t thisUpdate, nextUpdate, date = time(NULL);
time_t lifetime = 15 * 24 * 60 * 60;
@@ -204,7 +204,6 @@ static int sign_crl()
}
add_revoked(list, chunk_create(serial, serial_len), reason, date);
date = time(NULL);
- serial_len = 0;
reason = CRL_REASON_UNSPECIFIED;
continue;
case 's':
@@ -222,7 +221,6 @@ static int sign_crl()
serial_len = chunk.len;
add_revoked(list, chunk_create(serial, serial_len), reason, date);
date = time(NULL);
- serial_len = 0;
reason = CRL_REASON_UNSPECIFIED;
continue;
}