X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/db3f7b6972f3b003c0413b78afcfbe295ffe0b97..d8b76fa95c55331db4f475ee34caa7e8725ec421:/src/src/srs.c diff --git a/src/src/srs.c b/src/src/srs.c index aed88bc62..5db21ec8c 100644 --- a/src/src/srs.c +++ b/src/src/srs.c @@ -4,14 +4,14 @@ /* SRS - Sender rewriting scheme support (C)2004 Miles Wilton - Copyright (c) The Exim Maintainers 2016 + Copyright (c) The Exim Maintainers 2016 - 2021 SRS Support Version: 1.0a License: GPL */ #include "exim.h" -#ifdef EXPERIMENTAL_SRS +#ifdef EXPERIMENTAL_SRS_ALT #include #include "srs.h" @@ -50,6 +50,7 @@ if (srs == NULL) co = 0; if (srs_config != NULL) { + /* looks like list not expanded, so cannot be tainted */ secret = string_nextinlist(&list, &co, secret_buf, SRS_MAX_SECRET_LENGTH); if ((sbufp = string_nextinlist(&list, &co, sbuf, sizeof(sbuf)))) @@ -72,6 +73,7 @@ if (srs == NULL) co = 0; list = srs_secrets; if (secret == NULL || *secret == '\0') + /* looks like list not expanded so cannot be tainted */ if (!(secret = string_nextinlist(&list, &co, secret_buf, SRS_MAX_SECRET_LENGTH))) { log_write(0, LOG_MAIN | LOG_PANIC, @@ -104,6 +106,7 @@ if (srs == NULL) srs_set_option(srs, SRS_OPTION_USEHASH, usehash); /* Extra secrets? */ + /* looks like list not expanded so cannot be tainted */ while((secret = string_nextinlist(&list, &co, secret_buf, SRS_MAX_SECRET_LENGTH))) srs_add_secret(srs, secret, Ustrlen(secret) > SRS_MAX_SECRET_LENGTH ? SRS_MAX_SECRET_LENGTH : Ustrlen(secret));