Initialize error variable.

Obtained from:	Yandex LLC
Sponsored by:	Yandex LLC
This commit is contained in:
Andrey V. Elsukov 2014-12-11 18:40:56 +00:00
parent 0275b2e369
commit e65ada3e3c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=275711

View File

@ -428,6 +428,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);