HomeFreeBSD

Fix multiple bugs with ctld's UCL parsing

Description

Fix multiple bugs with ctld's UCL parsing

  • Don't segfault when parsing a misformatted auth-group section
  • If the config file specifies a chap section within a target but no auth-group, create a new anonymous auth-group. That matches the behavior with non-UCL config files.
  • Protect some potential segfaults with assertions

PR: 274380
MFC after: 1 week
Sponsored by: Axcient
Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D43198

Details

Provenance
asomersAuthored on Oct 9 2023, 6:26 PM
Reviewer
jhb
Differential Revision
D43198: Fix multiple bugs with ctld's UCL parsing
Parents
rGc4368d03e52c: improve handling of shell metacharacters in filenames
Branches
Unknown
Tags
Unknown