aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/ipsec
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2019-06-14 10:31:46 +0000
committerNeale Ranns <nranns@cisco.com>2019-06-17 15:15:30 +0000
commit2f0522008ca168e5fff5d754e2ca280ef9366d58 (patch)
treeb087291a90404f1de6ead3589c71b28ccca76486 /src/vnet/ipsec
parent2f0f96b9dbcb198dede1e5ebd4d880129d5d52c8 (diff)
ipsec: return original SA create error for tunnel create
rather than SRC/DST address error which is not so helpfull Type: fix Fixes: af3f0783 Change-Id: Ie2143e4e29de87d93e79bd96284c041bdbffd98e Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/ipsec')
-rw-r--r--src/vnet/ipsec/ipsec_if.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/ipsec/ipsec_if.c b/src/vnet/ipsec/ipsec_if.c
index 8e0fba28bad..6627d295f1e 100644
--- a/src/vnet/ipsec/ipsec_if.c
+++ b/src/vnet/ipsec/ipsec_if.c
@@ -335,7 +335,7 @@ ipsec_add_del_tunnel_if_internal (vnet_main_t * vnm,
&args->local_ip, &t->input_sa_index);
if (rv)
- return VNET_API_ERROR_INVALID_SRC_ADDRESS;
+ return rv;
ipsec_mk_key (&crypto_key,
args->local_crypto_key, args->local_crypto_key_len);
@@ -356,7 +356,7 @@ ipsec_add_del_tunnel_if_internal (vnet_main_t * vnm,
&args->remote_ip, &t->output_sa_index);
if (rv)
- return VNET_API_ERROR_INVALID_DST_ADDRESS;
+ return rv;
/* copy the key */
if (is_ip6)