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
odp-execute: Fix possible segfault.
[sliver-openvswitch.git]
/
lib
/
odp-execute.c
diff --git
a/lib/odp-execute.c
b/lib/odp-execute.c
index
185cf31
..
19fcc1c
100644
(file)
--- a/
lib/odp-execute.c
+++ b/
lib/odp-execute.c
@@
-200,7
+200,9
@@
odp_execute_actions(void *dp, struct ofpbuf *packet, struct flow *key,
break;
case OVS_ACTION_ATTR_USERSPACE: {
- userspace(dp, packet, key, a);
+ if (userspace) {
+ userspace(dp, packet, key, a);
+ }
break;
}