]> git.ipfire.org Git - thirdparty/chrony.git/commit
ntp: check value returned by CMSG_FIRSTHDR
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 9 May 2019 15:34:53 +0000 (17:34 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 10 May 2019 08:58:37 +0000 (10:58 +0200)
commit64fd1b8ba53b6a9194ab3f83264a19708ce4fc57
tree70477420d788a377e9137454b0a9c91464cfd701
parent69d3913f3eb504e11188d4a67e21e1797b5e58f4
ntp: check value returned by CMSG_FIRSTHDR

In NIO_Linux_RequestTxTimestamp(), check the returned pointer and the
length of the buffer before adding the control message. This fixes an
issue reported by the Clang static analyzer.
ntp_io_linux.c