projects
/
openvswitch
/ 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
[openvswitch]
/
ofproto
/
executer.c
diff --git
a/ofproto/executer.c
b/ofproto/executer.c
index bc42ccf8693561bec579cb7832ee591dcff587b4..b78b0df09714bcf7f8026f490887d62d13c2f3b4 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));
}
}