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
@ -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