summaryrefslogtreecommitdiff
path: root/pathd/path_cli.c
diff options
context:
space:
mode:
authorOlivier Dugeon <olivier.dugeon@orange.com>2021-05-19 14:16:00 +0200
committerGitHub <noreply@github.com>2021-05-19 14:16:00 +0200
commit587a1dfa399973ca30309b317fadc1a6b37bb91a (patch)
treedb21999c44d31cbc2e57c39ccbc7ff49f219825d /pathd/path_cli.c
parent942f6d35d31a9fe3f8bc1d05135fdd3968300c6b (diff)
parentac57e2c9b96747f5f1a7484d5955688cf6400314 (diff)
Merge pull request #8665 from volta-networks/fix_pathd_coverity
pathd: Clean coverity issues after merge pathd link state feature.
Diffstat (limited to 'pathd/path_cli.c')
-rw-r--r--pathd/path_cli.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/pathd/path_cli.c b/pathd/path_cli.c
index 8e1f94b0f0..172737c9d4 100644
--- a/pathd/path_cli.c
+++ b/pathd/path_cli.c
@@ -351,8 +351,6 @@ static int segment_list_has_src_dst(
nb_cli_enqueue_change(vty, xpath, NB_OP_MODIFY,
"ipv6_adjacency");
node_src_id = adj_src_ipv6_str;
- } else {
- return CMD_ERR_NO_MATCH;
}
/* addresses */
snprintf(xpath, XPATH_MAXLEN, "./segment[index='%s']/nai/local-address",
@@ -421,8 +419,6 @@ int segment_list_has_prefix(
sizeof(buf_prefix));
pre_ipaddr.ipa_type = IPADDR_V6;
pre_ipaddr.ip._v6_addr = prefix_cli.u.prefix6;
- } else {
- return CMD_ERR_NO_MATCH;
}
snprintf(xpath, XPATH_MAXLEN, "./segment[index='%s']/nai/local-address",
index_str);
@@ -524,7 +520,7 @@ DEFPY(srte_segment_list_segment, srte_segment_list_segment_cmd,
if (status != CMD_SUCCESS)
return status;
} else {
- segment_list_has_prefix(
+ status = segment_list_has_prefix(
vty, xpath, index, index_str, prefix_ipv4,
prefix_ipv4_str, prefix_ipv6, prefix_ipv6_str, has_algo,
algo, algo_str, has_iface_id, iface_id, iface_id_str);