Don't call errx() without a format string, to protect against possible
localized error messages from ipsec_strerror(). Obtained from: OpenBSD
This commit is contained in:
parent
d045f16001
commit
d94e8c62d6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=64276
@ -600,9 +600,9 @@ main(argc, argv)
|
||||
* turned off.
|
||||
*/
|
||||
if (setpolicy(rcvsock, "in bypass") < 0)
|
||||
errx(1, ipsec_strerror());
|
||||
errx(1, "%s", ipsec_strerror());
|
||||
if (setpolicy(rcvsock, "out bypass") < 0)
|
||||
errx(1, ipsec_strerror());
|
||||
errx(1, "%s", ipsec_strerror());
|
||||
#else
|
||||
{
|
||||
int level = IPSEC_LEVEL_NONE;
|
||||
@ -674,9 +674,9 @@ main(argc, argv)
|
||||
* turned off.
|
||||
*/
|
||||
if (setpolicy(sndsock, "in bypass") < 0)
|
||||
errx(1, ipsec_strerror());
|
||||
errx(1, "%s", ipsec_strerror());
|
||||
if (setpolicy(sndsock, "out bypass") < 0)
|
||||
errx(1, ipsec_strerror());
|
||||
errx(1, "%s", ipsec_strerror());
|
||||
#else
|
||||
{
|
||||
int level = IPSEC_LEVEL_BYPASS;
|
||||
|
Loading…
Reference in New Issue
Block a user