summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2021-05-17 12:40:51 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2021-06-28 00:30:03 +0100
commit559d4875e1bcdb1169b272c37f936e82b0a8b0c0 (patch)
treec8752e9b173b6afacc2912d8658ca55770f68979
parent79d354a91037771dfcb870783209d129df8dd086 (diff)
downloadexim4-559d4875e1bcdb1169b272c37f936e82b0a8b0c0.tar.gz
gsasl authenticator: do not try to clear server password after use, if
from config text
-rw-r--r--src/src/auths/gsasl_exim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/src/auths/gsasl_exim.c b/src/src/auths/gsasl_exim.c
index 7f9cc3295..479d01a29 100644
--- a/src/src/auths/gsasl_exim.c
+++ b/src/src/auths/gsasl_exim.c
@@ -757,7 +757,7 @@ switch (prop)
for memory wiping, so expanding strings will leave stuff laying around.
But no need to compound the problem, so get rid of the one we can. */
- memset(tmps, '\0', strlen(tmps));
+ if (US tmps != s) memset(tmps, '\0', strlen(tmps));
cbrc = GSASL_OK;
break;