]> git.ipfire.org Git - thirdparty/chrony.git/commit
conf: rework allow/deny parser
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 22 Sep 2021 13:54:50 +0000 (15:54 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 23 Sep 2021 13:16:33 +0000 (15:16 +0200)
commitf5fe5452f6bc8bcf7ee9945f70dab651c3910c5c
tree08dc0032ca6dbb809210f04c720b955d93af252e
parent3ac6a0c26cce479949ac4a675465338fd38e5f6c
conf: rework allow/deny parser

Refactor the (cmd)allow/deny parser and make it more strict in what
input it accepts. Check the scanned numbers and require whole input to
be processed.

Move the parser to cmdparse to make it available to the client.
cmdparse.c
cmdparse.h
conf.c