summaryrefslogtreecommitdiffstats
path: root/sys/netipsec
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2013-12-14 04:24:32 +0000
committerae <ae@FreeBSD.org>2013-12-14 04:24:32 +0000
commit1277739e09fd46dcb4de3e9c9b0d47f278d281d3 (patch)
treec61ba8f4edc47560c0275ea732c6f13a8f58020b /sys/netipsec
parenta210965c36287bab61aaad8e57ba88a303cf19cf (diff)
downloadFreeBSD-src-1277739e09fd46dcb4de3e9c9b0d47f278d281d3.zip
FreeBSD-src-1277739e09fd46dcb4de3e9c9b0d47f278d281d3.tar.gz
MFC r257987:
Initialize prot variable. PR: 177417
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 23a4a5c..d8eaaa1 100644
--- a/sys/netipsec/ipsec_input.c
+++ b/sys/netipsec/ipsec_input.c
@@ -602,6 +602,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