Date: Thu, 11 Dec 2014 18:40:57 +0000 (UTC) From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r275711 - head/sys/netipsec Message-ID: <201412111840.sBBIevI6001658@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412111840.sBBIevI6001658>