key-exchange: Pass prefix array directly, not a pointer to it
This commit is contained in:
@@ -507,7 +507,7 @@ static proposal_token_t *additional_key_exchange_parser(const char *algname)
|
|||||||
u_int num;
|
u_int num;
|
||||||
char prefix[3], alg[256];
|
char prefix[3], alg[256];
|
||||||
|
|
||||||
if (!algname || sscanf(algname, "%2s%1u_%255s", &prefix, &num, alg) != 3 ||
|
if (!algname || sscanf(algname, "%2s%1u_%255s", prefix, &num, alg) != 3 ||
|
||||||
!strcaseeq(prefix, "ke"))
|
!strcaseeq(prefix, "ke"))
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user