diff --git a/lib/ovsdb-idl.c b/lib/ovsdb-idl.c index d92df28d191..4c2a3e3aa90 100644 --- a/lib/ovsdb-idl.c +++ b/lib/ovsdb-idl.c @@ -728,7 +728,9 @@ ovsdb_idl_check_consistency(const struct ovsdb_idl *idl) size_t n_columns = shash_count(&row->table->columns); for (size_t j = 0; j < n_columns; j++) { const struct ovsdb_type *type = &class->columns[j].type; - const struct ovsdb_datum *datum = &row->new_datum[j]; + const struct ovsdb_datum *datum; + + datum = ovsdb_idl_read(row, &class->columns[j]); add_row_references(&type->key, datum->keys, datum->n, &row->uuid, &dsts, &n_dsts, &allocated_dsts);