summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2009-08-10 15:26:33 +0000
committerhenning <henning@openbsd.org>2009-08-10 15:26:33 +0000
commit99aee2909fe84780235c6c6f9529b03318d026fb (patch)
treec7b843e470c34ac6a503f21973a6b4bab90dbf63
parentlockmgr -> rwlock (diff)
downloadwireguard-openbsd-99aee2909fe84780235c6c6f9529b03318d026fb.tar.xz
wireguard-openbsd-99aee2909fe84780235c6c6f9529b03318d026fb.zip
we need to null mcopy, gotos bite. theo and i both missed them, theo ok
-rw-r--r--sys/netinet/ip_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 47b2b3e8016..b289b5cadf9 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_input.c,v 1.168 2009/08/10 13:20:08 henning Exp $ */
+/* $OpenBSD: ip_input.c,v 1.169 2009/08/10 15:26:33 henning Exp $ */
/* $NetBSD: ip_input.c,v 1.30 1996/03/16 23:53:58 christos Exp $ */
/*
@@ -1426,7 +1426,7 @@ ip_forward(m, srcrt)
int error, type = 0, code = 0, destmtu = 0, len;
u_int rtableid = 0;
n_long dest;
- struct mbuf mfake, *mcopy;
+ struct mbuf mfake, *mcopy = NULL;
dest = 0;
#ifdef DIAGNOSTIC