]> git.ipfire.org Git - thirdparty/chrony.git/commit
ntp: fix exp1 EF search in process_response()
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 23 Nov 2021 09:35:22 +0000 (10:35 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 24 Nov 2021 10:17:24 +0000 (11:17 +0100)
commit09067e06d386b25f3c841dcae32b1d8602d46742
tree0c5cda3eb18c3484db5640aceba402f7d8f77590
parentdbbdd5af0661bdbe51c0d35e5c93668275b5b60a
ntp: fix exp1 EF search in process_response()

Don't ignore the magic field when searching for the exp1 extension
field in a received response. If there were two exp1 fields in the
packet, and only one of them had the expected magic value, it should
pick the right one.

Fixes: 2319f72b29a9 ("ntp: add client support for experimental extension field")
ntp_core.c