You have p_name set in is_app_ironport?(), but not in this function. So this looks like you don't actually have a valid :sname here.