From b449f4079daea5bae4557cbe8141c4ce406c3fb9 Mon Sep 17 00:00:00 2001 From: ae Date: Mon, 11 Nov 2013 13:19:55 +0000 Subject: Initialize prot variable. PR: 177417 MFC after: 1 week --- sys/netipsec/ipsec_input.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/netipsec') 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 -- cgit v1.1