Skip to content

Commit

Permalink
Initialize error variable.
Browse files Browse the repository at this point in the history
Obtained from:	Yandex LLC
Sponsored by:	Yandex LLC
  • Loading branch information
bu7cher committed Dec 11, 2014
1 parent 3665df8 commit 3f424f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sys/netipsec/ipsec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3f424f0

Please sign in to comment.