mirror of
https://github.com/mtrojnar/osslsigncode.git
synced 2025-07-03 11:42:47 -05:00
Fix update_data_size()
This commit is contained in:

committed by
Michał Trojnara

parent
dd365d68c4
commit
7bfe3b5db9
5
cab.c
5
cab.c
@ -556,8 +556,9 @@ static void cab_update_data_size(FILE_FORMAT_CTX *ctx, BIO *outdata, PKCS7 *p7)
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
||||
};
|
||||
|
||||
if (ctx->options->cmd == CMD_VERIFY || ctx->options->cmd == CMD_EXTRACT
|
||||
|| ctx->options->cmd == CMD_REMOVE) {
|
||||
if (!p7) {
|
||||
/* CMD_REMOVE
|
||||
* additional header does not exist so additional data size is unused */
|
||||
return;
|
||||
}
|
||||
(void)BIO_seek(outdata, 0x30);
|
||||
|
Reference in New Issue
Block a user