rf_get_transport
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Fri, 2 Apr 2021 06:36:24 +0000 (08:36 +0200)
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Thu, 24 Jun 2021 19:43:13 +0000 (21:43 +0200)
(cherry picked from commit 015fff57c854184f8bce61476c46a2830a97daf8)

src/src/routers/rf_get_transport.c

index 4a43818ff45a745b42c000976888e2d3fc289828..32bde9ec3eeef7a7f9ad7e37e581cc324eb2991f 100644 (file)
@@ -66,10 +66,8 @@ if (expandable)
       "\"%s\" in %s router: %s", tpname, router_name, expand_string_message);
     return FALSE;
     }
-  if (is_tainted(ss))
+  if (is_tainted2(ss, LOG_MAIN|LOG_PANIC, "Tainted tainted value '%s' from '%s' for transport", ss, tpname))
     {
-    log_write(0, LOG_MAIN|LOG_PANIC,
-      "attempt to use tainted value '%s' from '%s' for transport", ss, tpname);
     addr->basic_errno = ERRNO_BADTRANSPORT;
     /* Avoid leaking info to an attacker */
     addr->message = US"internal configuration error";