Skip to content

Commit

Permalink
proto_ipsec: allow empty allowed_algorithms
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed May 9, 2024
1 parent da8ae07 commit 14466cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/proto_ipsec/ipsec_algo.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ struct ipsec_allowed_algo *ipsec_parse_allowed_algorithms(str *algs)

int ipsec_add_allowed_algorithms(str *algs)
{
if (!algs || !algs->len)
return 0;
ipsec_global_allowed_algos = ipsec_parse_allowed_algorithms(algs);
return (ipsec_global_allowed_algos?0:-1);
}
Expand Down

0 comments on commit 14466cc

Please sign in to comment.