Use incremented serial of base CRL when signing delta CRL

This commit is contained in:
Martin Willi
2011-01-05 16:46:06 +01:00
parent 2e90006f96
commit 0110c26a04
+2
View File
@@ -332,6 +332,8 @@ static int sign_crl()
error = "loading base CRL failed";
goto error;
}
memcpy(crl_serial, lastcrl->get_serial(lastcrl).ptr,
min(lastcrl->get_serial(lastcrl).len, sizeof(crl_serial)));
baseCrlNumber = chunk_clone(lastcrl->get_serial(lastcrl));
DESTROY_IF((certificate_t*)lastcrl);
lastcrl = NULL;