projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fatal-signal: After fork, clear hooks instead of disabling them.
[openvswitch]
/
ovsdb
/
ovsdb.c
diff --git
a/ovsdb/ovsdb.c
b/ovsdb/ovsdb.c
index 4d5f1c5e5270b7267e8290ad4bde05cf99fdac71..27254e633e2e38867212e2d26f45b25cbf13a342 100644
(file)
--- 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");
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);
} else {
error = ovsdb_table_schema_from_json(node->data, node->name,
&table);