Page MenuHomeFreeBSD

radlib: fix a memory leak
ClosedPublic

Authored by ngie on Jun 4 2024, 8:03 PM.
Tags
None
Referenced Files
F174488172: D45488.id139467.diff
Sat, Oct 3, 3:41 PM
F174422182: D45488.diff
Sat, Oct 3, 2:12 AM
F174399528: D45488.diff
Fri, Oct 2, 10:26 PM
Unknown Object (File)
Sat, Sep 12, 1:31 PM
Unknown Object (File)
Thu, Sep 10, 7:57 PM
Unknown Object (File)
Tue, Sep 8, 2:24 PM
Unknown Object (File)
Tue, Sep 8, 2:12 PM
Unknown Object (File)
Tue, Sep 8, 12:01 PM
Subscribers

Details

Summary

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

Reported by: Coverity

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ngie requested review of this revision.Jun 4 2024, 8:03 PM
ngie added a reviewer: emaste.
erj added a subscriber: erj.

It looks like it matches the cleanup that happens in the other return paths to me

This revision is now accepted and ready to land.Jun 4 2024, 8:07 PM
markj added a subscriber: markj.

Please add Fixes: 8d5c7813061d ("libradius: Fix input validation bugs") to the commit log message.

Please add Fixes: 8d5c7813061d ("libradius: Fix input validation bugs") to the commit log message.

Done!

This revision was automatically updated to reflect the committed changes.