Skip to content
Commit b937830f authored by Vernon Mauery's avatar Vernon Mauery
Browse files

Free cert usage before return



The ASN1 free will slowly leak memory for incorrect mutual auth
connections because if the certificate does not match the requirements
the function will return without freeing the usage string.

Tested: curl --cert client-cert.pem --key client-key.pem --cacert \
          CA-cert.pem https://${bmc}/redfish/v1/SessionService/Sessions

Change-Id: I4c335d3cd151187c7a10e7e668d1556c11389039
Signed-off-by: default avatarVernon Mauery <vernon.mauery@linux.intel.com>
parent 83f01297
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment