mirror of
https://github.com/opnsense/src.git
synced 2026-04-22 14:49:36 -04:00
added a missing unlock
Submitted by: JINMEI Tatuya MFC After: 1 day
This commit is contained in:
parent
6a6567612d
commit
971b154cd3
1 changed files with 3 additions and 1 deletions
|
|
@ -566,8 +566,10 @@ rip6_attach(struct socket *so, int proto, struct thread *td)
|
|||
}
|
||||
MALLOC(filter, struct icmp6_filter *,
|
||||
sizeof(struct icmp6_filter), M_PCB, M_NOWAIT);
|
||||
if (filter == NULL)
|
||||
if (filter == NULL) {
|
||||
INP_INFO_WUNLOCK(&ripcbinfo);
|
||||
return ENOMEM;
|
||||
}
|
||||
s = splnet();
|
||||
error = in_pcballoc(so, &ripcbinfo, "raw6inp");
|
||||
splx(s);
|
||||
|
|
|
|||
Loading…
Reference in a new issue