svn commit: r275711 - head/sys/netipsec
Andrey V. Elsukov
ae at FreeBSD.org
Thu Dec 11 18:40:57 UTC 2014
Author: ae
Date: Thu Dec 11 18:40:56 2014
New Revision: 275711
URL: https://svnweb.freebsd.org/changeset/base/275711
Log:
Initialize error variable.
Obtained from: Yandex LLC
Sponsored by: Yandex LLC
Modified:
head/sys/netipsec/ipsec.c
Modified: head/sys/netipsec/ipsec.c
==============================================================================
--- head/sys/netipsec/ipsec.c Thu Dec 11 18:35:34 2014 (r275710)
+++ head/sys/netipsec/ipsec.c Thu Dec 11 18:40:56 2014 (r275711)
@@ -428,6 +428,7 @@ ipsec_getpolicybyaddr(struct mbuf *m, u_
("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);
More information about the svn-src-all
mailing list