Remove dead code in node_ha
Check for setsockopt return value
Check for sscanf return value
Other errors reported by scan