summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2013-12-04 16:27:57 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2013-12-04 16:27:57 +0000
commit9b581b8e6d2748ad155471f1b131bc10a2c46ba8 (patch)
tree06d5d950668de9e74a2b683b16dcff36ba8d051d /sys
parentdc52ede26bf6804416ba01d97fd6700415fe275c (diff)
ifp must be initialized in ip_setmoptions; from oga via mpi, ok mpi
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c
index 2f0f519c0fb..3297116044f 100644
--- a/sys/netinet/ip_output.c
+++ b/sys/netinet/ip_output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_output.c,v 1.251 2013/11/27 08:37:08 mpi Exp $ */
+/* $OpenBSD: ip_output.c,v 1.252 2013/12/04 16:27:56 mikeb Exp $ */
/* $NetBSD: ip_output.c,v 1.28 1996/02/13 23:43:07 christos Exp $ */
/*
@@ -1704,7 +1704,7 @@ ip_setmoptions(int optname, struct ip_moptions **imop, struct mbuf *m,
struct in_addr addr;
struct in_ifaddr *ia;
struct ip_mreq *mreq;
- struct ifnet *ifp;
+ struct ifnet *ifp = NULL;
struct ip_moptions *imo = *imop;
struct in_multi **immp;
struct route ro;