diff options
author | rilysh <nightquick@proton.me> | 2024-01-21 12:18:09 +0530 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2024-01-25 16:39:09 +0100 |
commit | 0f644b96d209443b4566f7e86e3be2568292e75b (patch) | |
tree | 6f09a8f3a719e42ae35af6abe3092e18f3aca591 /ssl | |
parent | ea6268cfceaba24328d66bd14bfc97c4fac14a58 (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.c | 2 |
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) |