diff --git a/lib/vtls/nss.c b/lib/vtls/nss.c index 63f51fd799..2aa4bdaa13 100644 --- a/lib/vtls/nss.c +++ b/lib/vtls/nss.c @@ -337,7 +337,7 @@ static SECStatus set_ciphers(struct Curl_easy *data, PRFileDesc * model, while((*cipher) && (ISSPACE(*cipher))) ++cipher; - cipher_list = strchr(cipher, ','); + cipher_list = strpbrk(cipher, ":, "); if(cipher_list) { *cipher_list++ = '\0'; }