summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorrilysh <nightquick@proton.me>2024-01-21 12:18:09 +0530
committerTomas Mraz <tomas@openssl.org>2024-01-25 16:39:09 +0100
commit0f644b96d209443b4566f7e86e3be2568292e75b (patch)
tree6f09a8f3a719e42ae35af6abe3092e18f3aca591 /ssl
parentea6268cfceaba24328d66bd14bfc97c4fac14a58 (diff)
replace strstr() with strchr() for single characters
strstr() is used to match multiple characters in the haystack, whereas strchr() is used to matched only single character. CLA: trivial Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com> Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/23347)
Diffstat (limited to 'ssl')
-rw-r--r--ssl/ssl_conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/ssl_conf.c b/ssl/ssl_conf.c
index 49e6822479..e8d319bc52 100644
--- a/ssl/ssl_conf.c
+++ b/ssl/ssl_conf.c
@@ -241,7 +241,7 @@ static int cmd_ECDHParameters(SSL_CONF_CTX *cctx, const char *value)
return 1;
/* ECDHParameters accepts a single group name */
- if (strstr(value, ":") != NULL)
+ if (strchr(value, ':') != NULL)
return 0;
if (cctx->ctx)