X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ovsdb%2Fovsdb.c;h=27254e633e2e38867212e2d26f45b25cbf13a342;hb=722f63016f302da114e3afb145bd0c1af5aaeb8f;hp=4d5f1c5e5270b7267e8290ad4bde05cf99fdac71;hpb=bd06962ad334fa4631b67905fc9f43f96a908915;p=openvswitch diff --git a/ovsdb/ovsdb.c b/ovsdb/ovsdb.c index 4d5f1c5e..27254e63 100644 --- a/ovsdb/ovsdb.c +++ b/ovsdb/ovsdb.c @@ -107,6 +107,8 @@ ovsdb_schema_from_json(struct json *json, struct ovsdb_schema **schemap) 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_table_schema_from_json(node->data, node->name, &table);