projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cb0788
)
ovsdb: Fix ovsdb-server crash when specifying nonexistent file.
author
Ben Pfaff
<blp@nicira.com>
Tue, 23 Mar 2010 22:38:37 +0000
(15:38 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Wed, 24 Mar 2010 23:52:07 +0000
(16:52 -0700)
ovsdb_file_open__() can call (NULL) in its error exit
path, but ovsdb_schema_destroy() didn't tolerate a null pointer argument.
Bug #2538.
ovsdb/ovsdb.c
patch
|
blob
|
history
diff --git
a/ovsdb/ovsdb.c
b/ovsdb/ovsdb.c
index 5bbaddbd3810a99a0320af3253027ba40ed397d1..45683766c1c937a4e24dcca013bdd2d61e443e1f 100644
(file)
--- a/
ovsdb/ovsdb.c
+++ b/
ovsdb/ovsdb.c
@@
-58,6
+58,10
@@
ovsdb_schema_destroy(struct ovsdb_schema *schema)
{
struct shash_node *node;
+ if (!schema) {
+ return;
+ }
+
SHASH_FOR_EACH (node, &schema->tables) {
ovsdb_table_schema_destroy(node->data);
}