diff options
author | Martin Willi <martin@strongswan.org> | 2015-11-04 17:04:11 +0100 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2015-12-07 10:05:07 +0100 |
commit | 1db918c4f89fa97ecf04ec29b07960e7cf91fa5c (patch) | |
tree | 0ce0e062c4bbcd2086f90abdea1e1b42c52149ee /src/libcharon/plugins/vici/vici_config.c | |
parent | b26ba1b4a477dd75af30f416b445e1b1fd18a1a0 (diff) | |
download | strongswan-1db918c4f89fa97ecf04ec29b07960e7cf91fa5c.tar.bz2 strongswan-1db918c4f89fa97ecf04ec29b07960e7cf91fa5c.tar.xz |
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.
Diffstat (limited to 'src/libcharon/plugins/vici/vici_config.c')
-rw-r--r-- | src/libcharon/plugins/vici/vici_config.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libcharon/plugins/vici/vici_config.c b/src/libcharon/plugins/vici/vici_config.c index 2a652e014..7f7ce61a1 100644 --- a/src/libcharon/plugins/vici/vici_config.c +++ b/src/libcharon/plugins/vici/vici_config.c @@ -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) { |