Fix: tracker: NULL pointer dereference after NULL check
[lttng-tools.git] / src / common / tracker.c
index e4aae431d19a4896c818267c4ab781c0b85bac08..29249d528bc8da1f1a7b71e00381cc24b65d1678 100644 (file)
@@ -103,7 +103,8 @@ enum lttng_error_code process_attr_value_from_comm(
        }
 
        /* Only expect a payload for name value types. */
-       if (is_value_type_name(value_type) && value_view->size == 0) {
+       if (is_value_type_name(value_type) &&
+                       (!value_view || value_view->size == 0)) {
                ret = LTTNG_ERR_INVALID_PROTOCOL;
                goto error;
        } else if (!is_value_type_name(value_type) && value_view &&
This page took 0.032283 seconds and 4 git commands to generate.