router: check return code of odhcpd_get_interface_dns_addr()
authorHans Dedecker <dedeckeh@gmail.com>
Mon, 31 Dec 2018 15:00:12 +0000 (16:00 +0100)
committerHans Dedecker <dedeckeh@gmail.com>
Mon, 31 Dec 2018 15:05:09 +0000 (16:05 +0100)
commit1fe77f3f40cbe9227ade848e7c95f6354b2ff409
tree2e3ab882b258c4cb167012634143bede08f759b1
parent8f498044938e6ae48a49bc441a21195dd889e632
router: check return code of odhcpd_get_interface_dns_addr()

Check if odhcpd_get_interface_dns_addr() returns a valid DNS address.
While at it restructure the DNS RA code to make it more readable

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