diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2009-12-15 11:35:55 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2009-12-15 11:35:55 +0000 |
commit | 40e2bced57f29c979ea8674a28765ecd5c166592 (patch) | |
tree | e4894b928b8a1051f42e9dc6f1d9d1b46193344a /sys/netinet | |
parent | 5b39f7c67d1785c4079dfa4bd104f8243bcb44c8 (diff) |
Ensure that the interface is not null before trying to access its flags.
Fixes PR6274.
ok claudio@
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/igmp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/igmp.c b/sys/netinet/igmp.c index c2ca8b0d2ab..bfd3114bca4 100644 --- a/sys/netinet/igmp.c +++ b/sys/netinet/igmp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: igmp.c,v 1.26 2007/12/14 18:33:40 deraadt Exp $ */ +/* $OpenBSD: igmp.c,v 1.27 2009/12/15 11:35:54 jsing Exp $ */ /* $NetBSD: igmp.c,v 1.15 1996/02/13 23:41:25 christos Exp $ */ /* @@ -492,6 +492,7 @@ igmp_leavegroup(inm) case IGMP_DELAYING_MEMBER: case IGMP_IDLE_MEMBER: if (!IN_LOCAL_GROUP(inm->inm_addr.s_addr) && + inm->inm_ia->ia_ifp && (inm->inm_ia->ia_ifp->if_flags & IFF_LOOPBACK) == 0) if (inm->inm_rti->rti_type != IGMP_v1_ROUTER) igmp_sendpkt(inm, IGMP_HOST_LEAVE_MESSAGE, |