diff options
author | Christian Hopps <chopps@labn.net> | 2022-03-06 12:58:22 +0100 |
---|---|---|
committer | Christian Hopps <chopps@labn.net> | 2022-03-06 13:37:52 +0100 |
commit | 96d434f8530b9b096c661a7ac30fffe47f57c774 (patch) | |
tree | 0b7a48c42e1dc17bab985d945e7f1cb22d67accd /lib | |
parent | lib: tweak northbound gRPC default timeout (diff) | |
download | frr-96d434f8530b9b096c661a7ac30fffe47f57c774.tar.xz frr-96d434f8530b9b096c661a7ac30fffe47f57c774.zip |
lib: grpc: do not remove candidate entry too soon
Fix from Rafael Zalamena <rzalamena@opensourcerouting.org>
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/northbound_grpc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/northbound_grpc.cpp b/lib/northbound_grpc.cpp index ecab732e9..69669a288 100644 --- a/lib/northbound_grpc.cpp +++ b/lib/northbound_grpc.cpp @@ -96,11 +96,11 @@ class Candidates { char errmsg[BUFSIZ] = {0}; - _cdb.erase(c->id); nb_config_free(c->config); if (c->transaction) nb_candidate_commit_abort(c->transaction, errmsg, sizeof(errmsg)); + _cdb.erase(c->id); } struct candidate *get_candidate(uint32_t id) |