git://git.exim.org
/
users
/
heiko
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lf_sqlperform
[users/heiko/exim.git]
/
src
/
src
/
lookups
/
lf_sqlperform.c
diff --git
a/src/src/lookups/lf_sqlperform.c
b/src/src/lookups/lf_sqlperform.c
index ad1df29d10b4c3a775fa6683c328a2f136233787..eda3089e256e89ec56e9fd0b267fe3539590f0a0 100644
(file)
--- 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;
}
return DEFER;
}
+ }
rc = (*fn)(ss+1, server, result, errmsg, &defer_break, do_cache, opts);
if (rc != DEFER || defer_break) return rc;
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;
}
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;
}
return DEFER;
}
+ }
rc = (*fn)(query, server, result, errmsg, &defer_break, do_cache, opts);
if (rc != DEFER || defer_break) return rc;
rc = (*fn)(query, server, result, errmsg, &defer_break, do_cache, opts);
if (rc != DEFER || defer_break) return rc;