projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ovs_stats: fix potential NULL dereference
[collectd.git]
/
src
/
ovs_stats.c
diff --git
a/src/ovs_stats.c
b/src/ovs_stats.c
index
e027845
..
358d10e
100644
(file)
--- a/
src/ovs_stats.c
+++ b/
src/ovs_stats.c
@@
-244,6
+244,9
@@
static port_list_t *ovs_stats_get_port_by_name(const char *name) {
/* Create or get port by port uuid */
static port_list_t *ovs_stats_new_port(bridge_list_t *bridge,
const char *uuid) {
+ if (uuid == NULL)
+ return NULL;
+
port_list_t *port = ovs_stats_get_port(uuid);
if (port == NULL) {