From d94e8c62d6fdf939d3ab7acb8eaef8623587fd14 Mon Sep 17 00:00:00 2001 From: Kris Kennaway Date: Sat, 5 Aug 2000 06:21:12 +0000 Subject: [PATCH] Don't call errx() without a format string, to protect against possible localized error messages from ipsec_strerror(). Obtained from: OpenBSD --- usr.sbin/traceroute6/traceroute6.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usr.sbin/traceroute6/traceroute6.c b/usr.sbin/traceroute6/traceroute6.c index 163cf0c9259d..d971318260d3 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;