odhcpd: fix passing possible negative parameter
authorHans Dedecker <dedeckeh@gmail.com>
Mon, 4 Jun 2018 19:49:52 +0000 (21:49 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Mon, 4 Jun 2018 19:54:57 +0000 (21:54 +0200)
commit392701f80a31cf1b3781f9931ba398a1944894ef
treefd837ed836e377640bc635549944da5901f369c2
parent029123bc5f2bd9429abc27c987e40af7799238a2
odhcpd: fix passing possible negative parameter

Prevent passing negative argument to read; detected by Coverity in CID1412381

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
src/odhcpd.c