X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ovsdb%2Ftable.c;h=b520580c09439b68dd8f80bbf5617da576423442;hb=5c8ef29c2efb73ab3bc8ac30f1499fb6499692cf;hp=d017a6ba0ec1c16c05fab8d9d1d14561fb6d1ef7;hpb=f85f8ebbfac946c19b3c6eb0f4170f579d0a4d25;p=openvswitch diff --git a/ovsdb/table.c b/ovsdb/table.c index d017a6ba..b520580c 100644 --- a/ovsdb/table.c +++ b/ovsdb/table.c @@ -111,6 +111,8 @@ ovsdb_table_schema_from_json(const struct json *json, const char *name, if (node->name[0] == '_') { error = ovsdb_syntax_error(json, NULL, "names beginning with " "\"_\" are reserved"); + } else if (!ovsdb_parser_is_id(node->name)) { + error = ovsdb_syntax_error(json, NULL, "name must be a valid id"); } else { error = ovsdb_column_from_json(node->data, node->name, &column); }