From 64eaa054d3f2f4071efbe982508c66df80493234 Mon Sep 17 00:00:00 2001 From: Luiz Otavio O Souza Date: Tue, 15 Sep 2015 14:52:09 -0500 Subject: MFC r275711: Initialize error variable. Obtained from: Yandex LLC Sponsored by: Yandex LLC TAG: IPSEC-HEAD Issue: #4841 --- sys/netipsec/ipsec.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/netipsec') diff --git a/sys/netipsec/ipsec.c b/sys/netipsec/ipsec.c index ecf80a8..df5a7a1 100644 --- a/sys/netipsec/ipsec.c +++ b/sys/netipsec/ipsec.c @@ -427,6 +427,7 @@ ipsec_getpolicybyaddr(struct mbuf *m, u_int dir, int *error) ("invalid direction %u", dir)); sp = NULL; + *error = 0; if (key_havesp(dir)) { /* Make an index to look for a policy. */ *error = ipsec_setspidx(m, &spidx, 0); -- cgit v1.1