summaryrefslogtreecommitdiffstats
path: root/sys/netipsec
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2013-11-11 13:19:55 +0000
committerae <ae@FreeBSD.org>2013-11-11 13:19:55 +0000
commitb449f4079daea5bae4557cbe8141c4ce406c3fb9 (patch)
treec1f70f0a2e41f986474c519baa9759344147fec3 /sys/netipsec
parentf03201ef21ca9a72e1a6eacd14738fbfb446ebac (diff)
downloadFreeBSD-src-b449f4079daea5bae4557cbe8141c4ce406c3fb9.zip
FreeBSD-src-b449f4079daea5bae4557cbe8141c4ce406c3fb9.tar.gz
Initialize prot variable.
PR: 177417 MFC after: 1 week
Diffstat (limited to 'sys/netipsec')
-rw-r--r--sys/netipsec/ipsec_input.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netipsec/ipsec_input.c b/sys/netipsec/ipsec_input.c
index 859b7ee..f019581 100644
--- a/sys/netipsec/ipsec_input.c
+++ b/sys/netipsec/ipsec_input.c
@@ -603,6 +603,7 @@ ipsec6_common_input_cb(struct mbuf *m, struct secasvar *sav, int skip, int proto
ip6->ip6_plen = htons(m->m_pkthdr.len - sizeof(struct ip6_hdr));
/* Save protocol */
+ prot = 0;
m_copydata(m, protoff, 1, (unsigned char *) &prot);
#ifdef notyet
OpenPOWER on IntegriCloud