ipsec: missing curly braces led to always false return

Sorry for the dupe -- forgot to change my tab settings.