summaryrefslogtreecommitdiffstats
path: root/lib/vty.c
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2023-02-24 13:37:09 +0100
committerGitHub <noreply@github.com>2023-02-24 13:37:09 +0100
commit7cedcf270e01097ed2d675e12f9be0dfd4f7d69b (patch)
tree8348d055ddc0c956ecdadcc64c508ecfebc9c92a /lib/vty.c
parentMerge pull request #12751 from Pdoijode/pdoijode/ospf-vrf-neighbor-detail-1 (diff)
parentlib: fix init. use of nb_context to be by value not by reference (diff)
downloadfrr-7cedcf270e01097ed2d675e12f9be0dfd4f7d69b.tar.xz
frr-7cedcf270e01097ed2d675e12f9be0dfd4f7d69b.zip
Merge pull request #12889 from LabNConsulting/chopps/fix-nb-context-arg
lib: fix init. use of nb_context to be by value not by reference
Diffstat (limited to 'lib/vty.c')
-rw-r--r--lib/vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vty.c b/lib/vty.c
index 1854abb0b..786271abe 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -2420,7 +2420,7 @@ static void vty_read_file(struct nb_config *config, FILE *confp)
context.client = NB_CLIENT_CLI;
context.user = vty;
- ret = nb_candidate_commit(&context, vty->candidate_config, true,
+ ret = nb_candidate_commit(context, vty->candidate_config, true,
"Read configuration file", NULL,
errmsg, sizeof(errmsg));
if (ret != NB_OK && ret != NB_ERR_NO_CHANGES)