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:
kp 2018-11-02 17:03:53 +00:00
parent 3e00fc7403
commit ce2fde0f6e

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);
}
}