git://git.exim.org
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d21db86
)
openssl config strings are immutable
author
Jeremy Harris
<jgh146exb@wizmail.org>
Sun, 16 May 2021 12:22:20 +0000
(13:22 +0100)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Sun, 27 Jun 2021 23:30:02 +0000
(
00:30
+0100)
src/src/tls-openssl.c
patch
|
blob
|
history
diff --git
a/src/src/tls-openssl.c
b/src/src/tls-openssl.c
index 9692033f0910e4ec185368938076fd58324c41f3..4636f3c320ff44ff669d18258f4175d8b965c70e 100644
(file)
--- a/
src/src/tls-openssl.c
+++ b/
src/src/tls-openssl.c
@@
-4529,7
+4529,6
@@
tls_openssl_options_parse(uschar *option_spec, long *results)
{
long result, item;
uschar * exp, * end;
{
long result, item;
uschar * exp, * end;
-uschar keep_c;
BOOL adding, item_parsed;
/* Server: send no (<= TLS1.2) session tickets */
BOOL adding, item_parsed;
/* Server: send no (<= TLS1.2) session tickets */
@@
-4571,11
+4570,8
@@
for (uschar * s = exp; *s; /**/)
return FALSE;
}
adding = *s++ == '+';
return FALSE;
}
adding = *s++ == '+';
- for (end = s; (*end != '\0') && !isspace(*end); ++end) /**/ ;
- keep_c = *end;
- *end = '\0';
- item_parsed = tls_openssl_one_option_parse(s, &item);
- *end = keep_c;
+ for (end = s; *end && !isspace(*end); ) end++;
+ item_parsed = tls_openssl_one_option_parse(string_copyn(s, end-s), &item);
if (!item_parsed)
{
DEBUG(D_tls) debug_printf("openssl option setting unrecognised: \"%s\"\n", s);
if (!item_parsed)
{
DEBUG(D_tls) debug_printf("openssl option setting unrecognised: \"%s\"\n", s);