summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2004-05-23 01:59:10 +0000
committerderaadt <deraadt@openbsd.org>2004-05-23 01:59:10 +0000
commit306501567f214f4514c381aee23a9b5ef8d1180d (patch)
tree613da5999c1cf9f3cfd32a68f3067fda179c8a95
parentcats ld showed that there was a common size mismatch... (diff)
downloadwireguard-openbsd-306501567f214f4514c381aee23a9b5ef8d1180d.tar.xz
wireguard-openbsd-306501567f214f4514c381aee23a9b5ef8d1180d.zip
missing splx; andrushock@korovino.net
-rw-r--r--sys/netinet/igmp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/netinet/igmp.c b/sys/netinet/igmp.c
index 8a0d237a4b9..faf2f282125 100644
--- a/sys/netinet/igmp.c
+++ b/sys/netinet/igmp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: igmp.c,v 1.20 2004/01/03 14:08:53 espie Exp $ */
+/* $OpenBSD: igmp.c,v 1.21 2004/05/23 01:59:10 deraadt Exp $ */
/* $NetBSD: igmp.c,v 1.15 1996/02/13 23:41:25 christos Exp $ */
/*
@@ -402,8 +402,10 @@ igmp_joingroup(inm)
if (!IN_LOCAL_GROUP(inm->inm_addr.s_addr) &&
(inm->inm_ifp->if_flags & IFF_LOOPBACK) == 0) {
- if ((i = rti_fill(inm)) == -1)
+ if ((i = rti_fill(inm)) == -1) {
+ splx(s);
return;
+ }
igmp_sendpkt(inm, i, 0);
inm->inm_state = IGMP_DELAYING_MEMBER;
inm->inm_timer = IGMP_RANDOM_DELAY(