key-exchange: Pass prefix array directly, not a pointer to it
This commit is contained in:
1 parent
8e2fde6230
commit
12d2b6e2b4
1 file changed
+1
-1
@@ -507,7 +507,7 @@ static proposal_token_t *additional_key_exchange_parser(const char *algname)
|
||||
u_int num;
|
||||
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"))
|
||||
{
|
||||
return NULL;
|
||||
|
||||
Reference in new issue
Block a user