git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ofproto: Fix segfault when changing command execution settings
[sliver-openvswitch.git]
/
ofproto
/
executer.c
diff --git
a/ofproto/executer.c
b/ofproto/executer.c
index
bc42ccf
..
b78b0df
100644
(file)
--- a/
ofproto/executer.c
+++ b/
ofproto/executer.c
@@
-508,5
+508,7
@@
executer_set_acl(struct executer *e, const char *acl, const char *dir)
free(e->command_acl);
e->command_acl = xstrdup(acl);
free(e->command_dir);
free(e->command_acl);
e->command_acl = xstrdup(acl);
free(e->command_dir);
- e->command_dir = xstrdup(dir);
+ e->command_dir = (dir
+ ? xstrdup(dir)
+ : xasprintf("%s/commands", ovs_pkgdatadir));
}
}