summaryrefslogtreecommitdiffstats
path: root/usr.sbin/traceroute6
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-08-05 06:21:12 +0000
committerkris <kris@FreeBSD.org>2000-08-05 06:21:12 +0000
commitb1da3ba3c9fcdd3bfd892540fb1f39c9a3f12264 (patch)
treeaf761284e1a72383730a93251cb2cf51092b4042 /usr.sbin/traceroute6
parent0cabc8fc063813aad9901a3378ad2f66628d8537 (diff)
downloadFreeBSD-src-b1da3ba3c9fcdd3bfd892540fb1f39c9a3f12264.zip
FreeBSD-src-b1da3ba3c9fcdd3bfd892540fb1f39c9a3f12264.tar.gz
Don't call errx() without a format string, to protect against possible
localized error messages from ipsec_strerror(). Obtained from: OpenBSD
Diffstat (limited to 'usr.sbin/traceroute6')
-rw-r--r--usr.sbin/traceroute6/traceroute6.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/traceroute6/traceroute6.c b/usr.sbin/traceroute6/traceroute6.c
index 163cf0c..d971318 100644
--- a/usr.sbin/traceroute6/traceroute6.c
+++ b/usr.sbin/traceroute6/traceroute6.c
@@ -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;
OpenPOWER on IntegriCloud