Minor cleanup.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Fix socket leak in check_interface_address().

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>