Fix a double free in the destroy path triggered when a second process,
authormpi <mpi@openbsd.org>
Mon, 15 Jun 2015 15:55:08 +0000 (15:55 +0000)
committermpi <mpi@openbsd.org>
Mon, 15 Jun 2015 15:55:08 +0000 (15:55 +0000)
commit64d4a3f945b25792a44ef8b561f9874a3de5caeb
tree13dc500b667caddbc89b6f98889e48e02b88970d
parente0841944412c2d6ba1f99b17e5b577f7c7d7d199
Fix a double free in the destroy path triggered when a second process,
in my case dhclient(8), races with ifconfig(8) to free the descriptors
of the joined multicast groups.

While here reduce the difference with carp(4).

ok dms@
sys/net/if_trunk.c