Browse Source

fixing a possible memory hole

ENGINE-812
Volker Birk 2 years ago
parent
commit
5d3e42698c
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      src/message_api.c

+ 6
- 2
src/message_api.c View File

@ -3910,13 +3910,17 @@ static PEP_STATUS _decrypt_message(
// functional
if (src->recv_by) {
status = myself(session, src->recv_by);
if (status)
if (status) {
free_stringlist(_imported_key_list);
return status;
}
}
status = get_crypto_text(src, &ctext, &csize);
if (status != PEP_STATUS_OK)
if (status) {
free_stringlist(_imported_key_list);
return status;
}
/** Ok, we should be ready to decrypt. Try decrypt and verify first! **/
status = decrypt_and_verify(session, ctext, csize, dsig_text, dsig_size,


Loading…
Cancel
Save