BOOTP/DHCP: fix "Unchecked return value" found by Coverity

Add a bounds check
Fix spaces