Prevent illegal struct casting by moving AF_INET/AF_INET6 address
authormatthew <matthew@openbsd.org>
Mon, 2 Aug 2010 10:30:00 +0000 (10:30 +0000)
committermatthew <matthew@openbsd.org>
Mon, 2 Aug 2010 10:30:00 +0000 (10:30 +0000)
commit1bcea4cf9cf1da68dd5875589a9d434abd9d321f
treef17634eab0157605256d767facc69f00d1f3e937
parent58cbacc39519b63aeea1608879db96f80cc79b76
Prevent illegal struct casting by moving AF_INET/AF_INET6 address
family checks before calling ifatoia/ifatoia6.

ok deraadt@, dlg@, mcbride@
sys/netinet/ip_carp.c