pfsync: Add missing unlock

If we fail to set up the multicast entry for pfsync and return an error
we must release the pfsync lock first.

MFC after:	2 weeks
Sponsored by:	Orange Business Services
Differential Revision:	https://reviews.freebsd.org/D17506
This commit is contained in:
Kristof Provost 2018-11-02 17:03:53 +00:00
parent af6a86eb9a
commit dde6e1fecb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=340072

View File

@ -1394,6 +1394,7 @@ pfsyncioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
if (error) {
if_rele(sifp);
free(mship, M_PFSYNC);
PFSYNC_UNLOCK(sc);
return (error);
}
}