Do not dereference null pointer.
Do not tokenize empty input.
Fix some leaks.
Zero memory for inet address.
Some fixes to macro expansion in spf.