Initialize error variable.
Obtained from: Yandex LLC Sponsored by: Yandex LLC
This commit is contained in:
parent
0275b2e369
commit
e65ada3e3c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=275711
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user