2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-25 15:07:05 +00:00

ofproto-dpif: Add check in rstp_run.

Check if old_root_aux and new_root_aux are null before invoking
bundle_move() on them.

Signed-off-by: Daniele Venturino <daniele.venturino@m3s.it>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
This commit is contained in:
Daniele Venturino
2015-09-30 10:49:52 +02:00
committed by Jarno Rajahalme
parent fdb5945136
commit c7e4f0b2c3
2 changed files with 10 additions and 3 deletions

View File

@@ -280,6 +280,8 @@ rstp_create(const char *name, rstp_identifier bridge_address,
rstp->aux = aux;
rstp->changes = false;
rstp->begin = true;
rstp->old_root_aux = NULL;
rstp->new_root_aux = NULL;
ovs_refcount_init(&rstp->ref_cnt);