Wireshark-commits: [Wireshark-commits] master a3e8015: g_malloc the decrypted key in AES_unwrap(),

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Mon, 21 Dec 2015 20:56:23 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=a3e80157c830e75a8b7c5bae89dabd943c7bfc85
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

a3e8015 by Guy Harris (guy@xxxxxxxxxxxx):

    g_malloc the decrypted key in AES_unwrap(), but always free it.
    
    It doesn't need to exist after AirPDcapDecryptWPABroadcastKey() returns.
    
    Change-Id: Ifaf08dfb285be3cf54429f7b77d44565962d4450
    Reviewed-on: https://code.wireshark.org/review/12808
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    

Actions performed:

    from  6ede7d4   g_mallocate the encrypted key, but free it in all paths out of the function.
    adds  a3e8015   g_malloc the decrypted key in AES_unwrap(), but always free it.


Summary of changes:
 epan/crypt/airpdcap.c          |    4 ++++
 epan/crypt/airpdcap_rijndael.c |    3 +--
 2 files changed, 5 insertions(+), 2 deletions(-)