fix var name in sa_len branch
s/buf/hostOut
also line break the two conditional branches the same way so it's easier
to spot that kinda thing. looking back I wonder if perhaps we should
just stop using sa_len, would certainly avoid this ifdef.
should fix building on freebsd