HomeFreeBSD

radlib: fix a memory leak in `is_valid_request`

Description

radlib: fix a memory leak in is_valid_request

Call HMAC_CTX_free if returning early from is_valid_request when
processing Message-Authenticator tags.

Reported by: Coverity
MFC after: 1 week
Fixes: 8d5c7813061d ("libradius: Fix input validation bugs")
Differential Revision: https://reviews.freebsd.org/D45488

(cherry picked from commit 77c04f3eb12a560eb61252c817e4147bc0178e43)

Details

Provenance
ngieAuthored on Jun 4 2024, 8:01 PM
Differential Revision
D45488: radlib: fix a memory leak
Parents
rGcc43f991ab3e: openssl: Import OpenSSL 3.0.15.
Branches
Unknown
Tags
Unknown