summaryrefslogtreecommitdiffstats
path: root/pathd
diff options
context:
space:
mode:
authorJavier Garcia <javier.garcia@voltanet.io>2021-03-20 22:21:09 +0100
committerJavier Garcia <javier.garcia@voltanet.io>2021-03-20 22:21:09 +0100
commit7ed8c4b1fd2cd46864271e44a9778caa31d367fd (patch)
tree3b11f0c2123b57fee1cc7cf9ef0a21268decf7fe /pathd
parentMerge pull request #8232 from reubendowle/fixes/nhrp-ipsec-issues (diff)
downloadfrr-7ed8c4b1fd2cd46864271e44a9778caa31d367fd.tar.xz
frr-7ed8c4b1fd2cd46864271e44a9778caa31d367fd.zip
pceplib: Fixing coverity messages.
Signed-off-by: Javier Garcia <javier.garcia@voltanet.io>
Diffstat (limited to 'pathd')
-rw-r--r--pathd/path_pcep_cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pathd/path_pcep_cli.c b/pathd/path_pcep_cli.c
index 7bbed9464..e2b33b8ff 100644
--- a/pathd/path_pcep_cli.c
+++ b/pathd/path_pcep_cli.c
@@ -1046,7 +1046,7 @@ static int path_pcep_cli_pcc_pcc_peer(struct vty *vty, const char *peer_name,
XMALLOC(MTYPE_PCEP, sizeof(struct pcc_opts));
memcpy(&pcc_opts_copy->addr,
&pce_opts_cli->pce_opts.config_opts.source_ip,
- sizeof(struct pcc_opts));
+ sizeof(pcc_opts_copy->addr));
pcc_opts_copy->msd = pcc_msd_g;
pcc_opts_copy->port = pce_opts_cli->pce_opts.config_opts.source_port;
if (pcep_ctrl_update_pcc_options(pcep_g->fpt, pcc_opts_copy)) {