[exim-cvs] lf_sqlperform

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Exim Git Commits Mailing List
Ημερομηνία:  
Προς: exim-cvs
Αντικείμενο: [exim-cvs] lf_sqlperform
Gitweb: https://git.exim.org/exim.git/commitdiff/ec7e44dc9134307d74afa4b07f09afbdd019282c
Commit:     ec7e44dc9134307d74afa4b07f09afbdd019282c
Parent:     0fa46a83a55054c65ffc539405f62bf86aac5b44
Author:     Heiko Schlittermann (HS12-RIPE) <hs@???>
AuthorDate: Thu Apr 1 21:36:12 2021 +0200
Committer:  Heiko Schlittermann (HS12-RIPE) <hs@???>
CommitDate: Thu Jun 24 21:43:12 2021 +0200


    lf_sqlperform


    (cherry picked from commit 9810dfc25d8b9687b46e57963a3ac30bf5c9b2c9)
---
 src/src/lookups/lf_sqlperform.c | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)


diff --git a/src/src/lookups/lf_sqlperform.c b/src/src/lookups/lf_sqlperform.c
index ad1df29..eda3089 100644
--- a/src/src/lookups/lf_sqlperform.c
+++ b/src/src/lookups/lf_sqlperform.c
@@ -102,11 +102,13 @@ if (Ustrncmp(query, "servers", 7) == 0)
         }
       }


-    if (is_tainted(server))
-      {
-      *errmsg = string_sprintf("%s server \"%s\" is tainted", name, server);
+    { uschar *m;
+    if (m = is_tainted2(server, 0, "Tainted %s server '%s'", name, server))
+     {
+      *errmsg = m;
       return DEFER;
       }
+    }


     rc = (*fn)(ss+1, server, result, errmsg, &defer_break, do_cache, opts);
     if (rc != DEFER || defer_break) return rc;
@@ -158,11 +160,13 @@ else
     server = ele;
     }


-      if (is_tainted(server))
+      { uschar *m;
+      if (is_tainted2(server, 0, "Tainted %s server '%s'", name, server))
         {
-        *errmsg = string_sprintf("%s server \"%s\" is tainted", name, server);
+        *errmsg = m;
         return DEFER;
         }
+      }


       rc = (*fn)(query, server, result, errmsg, &defer_break, do_cache, opts);
       if (rc != DEFER || defer_break) return rc;