summaryrefslogtreecommitdiff
path: root/ospfclient/ospfclient.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2024-02-20 22:32:52 +0200
committerIgor Ryzhov <iryzhov@nfware.com>2024-02-20 22:32:52 +0200
commit01f371a677dc52ff888b14360f6ffd63b91f3845 (patch)
treec62453610b48d268b44822ca4acb1de86fb8c4a6 /ospfclient/ospfclient.c
parent323caf1d7013c4787b30ee34b3c53dd4bf0a92aa (diff)
lib: fix order of northbound callbacks
When ordering the NB callbacks according to their priorities, if the operation is "destroy" we should reverse the order, to destroy the dependants before the dependencies. This fixes the crash, that can be reproduced with the following steps: ``` frr# conf term file-lock frr(config)# affinity-map map bit-position 10 frr(config)# interface test frr(config-if)# link-params frr(config-link-params)# affinity map frr(config-link-params)# exit frr(config-if)# exit frr(config)# mgmt commit apply frr(config)# no affinity-map map frr(config)# interface test frr(config-if)# link-params frr(config-link-params)# no affinity map frr(config-link-params)# exit frr(config-if)# exit frr(config)# mgmt commit apply ``` Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'ospfclient/ospfclient.c')
0 files changed, 0 insertions, 0 deletions