projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
netdev-linux: Don't close(0) when closing an ordinary netdev.
[openvswitch]
/
ovsdb
/
table.c
diff --git
a/ovsdb/table.c
b/ovsdb/table.c
index d017a6ba0ec1c16c05fab8d9d1d14561fb6d1ef7..b520580c09439b68dd8f80bbf5617da576423442 100644
(file)
--- 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");
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);
}
} else {
error = ovsdb_column_from_json(node->data, node->name, &column);
}