]> git.puffer.fish Git - matthieu/frr.git/commit
lib: fix "use of uninitialised value" valgrind warning
authorRenato Westphal <renato@opensourcerouting.org>
Mon, 14 Jan 2019 18:29:18 +0000 (16:29 -0200)
committerRenato Westphal <renato@opensourcerouting.org>
Mon, 14 Jan 2019 18:32:23 +0000 (16:32 -0200)
commitf65fb6b4b4530b6f4aa7408a4e256017ccb0f2c2
tree4d946728d6a8409857b5d1177cfe52e64ce7874e
parentec348d4344da548a3b7b22f644953e5fa275c1df
lib: fix "use of uninitialised value" valgrind warning

When FRR is built without the --enable-config-rollbacks option,
the nb_db_transaction_save() function does nothing and the
"transaction_id" output parameter is left uninitialized. For
this reason, all northbound clients should initialize the
"transaction_id" argument before calling nb_candidate_commit() or
nb_candidate_commit_apply() (except when a NULL pointer is given,
which is the case of the confd and sysrepo plugins).

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
lib/northbound_cli.c