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

Details

Provenance
ngieAuthored on Jun 4 2024, 8:01 PM
Differential Revision
D45488: radlib: fix a memory leak
Parents
rGdbe7ff254e6c: nfsd: Update a file missed by commit e2c9fad2e0ae
Branches
Unknown
Tags
Unknown