router: improve error checking
authorHans Dedecker <dedeckeh@gmail.com>
Sun, 27 May 2018 20:18:25 +0000 (22:18 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Mon, 28 May 2018 09:44:43 +0000 (11:44 +0200)
commit6b7974838d92d06906c6f6b76dde6fb1755492a1
tree649bb93e52d24418797abfbcc2828620b84bf5bf
parent12e21bca86882298f74d3603e909449afc86df79
router: improve error checking

Improve error checking fixing resource leak detected by Coverity in CID
1430880.
Further fix unchecked return value reported by Coverity in CIDs 1430872,
14308391430831 and 1412382

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