From e9804ffdf703d27b18ca3a4d81a4599ac2eacc04 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 6 Jul 2017 14:33:42 -0700 Subject: bridge: Avoid read of uninitialized data configuring Auto-Attach. Reported-by: "qintao (F)" Reported-at: https://mail.openvswitch.org/pipermail/ovs-discuss/2017-April/044309.html Signed-off-by: Ben Pfaff Acked-by: Andy Zhou --- vswitchd/bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vswitchd') diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index 3dca0eb17..a8cbae78c 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -3890,7 +3890,7 @@ bridge_configure_aa(struct bridge *br) union ovsdb_atom atom; atom.integer = m->isid; - if (ovsdb_datum_find_key(mc, &atom, OVSDB_TYPE_UUID) == UINT_MAX) { + if (ovsdb_datum_find_key(mc, &atom, OVSDB_TYPE_INTEGER) == UINT_MAX) { VLOG_INFO("Deleting isid=%"PRIu32", vlan=%"PRIu16, m->isid, m->vlan); bridge_aa_mapping_destroy(m); -- cgit v1.2.1