vici: Use an empty local auth round if none given

While it hardly makes sense to use none for negotiated SAs, it actually does
when installing shunt policies.
This commit is contained in:
Martin Willi 2015-11-04 17:04:11 +01:00
parent b26ba1b4a4
commit 1db918c4f8
1 changed files with 2 additions and 3 deletions

View File

@ -1886,9 +1886,8 @@ CALLBACK(config_sn, bool,
if (peer.local->get_count(peer.local) == 0)
{
free_peer_data(&peer);
peer.request->reply = create_reply("missing local auth config");
return FALSE;
auth_cfg = auth_cfg_create();
peer.local->insert_last(peer.local, auth_cfg);
}
if (peer.remote->get_count(peer.remote) == 0)
{