mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
in_mcast: Fix a lock leak in inp_set_source_filters()
MFC after: 3 days Reported by: Claude Opus 4.6 (cherry picked from commit bebc1a5b09e358b420077a1b5c0f85f8e7f0812f)
This commit is contained in:
parent
ce12e9a52e
commit
788c51ad94
1 changed files with 1 additions and 0 deletions
|
|
@ -2601,6 +2601,7 @@ inp_set_source_filters(struct inpcb *inp, struct sockopt *sopt)
|
|||
error = copyin(msfr.msfr_srcs, kss,
|
||||
sizeof(struct sockaddr_storage) * msfr.msfr_nsrcs);
|
||||
if (error) {
|
||||
IN_MULTI_UNLOCK();
|
||||
free(kss, M_TEMP);
|
||||
return (error);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue