Skip to content

Commit

Permalink
key-exchange: Pass prefix array directly, not a pointer to it
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasbrunner committed Aug 8, 2024
1 parent 8e2fde6 commit 12d2b6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstrongswan/crypto/key_exchange.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 12d2b6e

Please sign in to comment.