Fix: sessiond: NULL pointer dereference after NULL check
[lttng-tools.git] / src / common / tracker.c
index 0f69c775b75f6d1c08e213fa547bcbbf5feb7daa..e4aae431d19a4896c818267c4ab781c0b85bac08 100644 (file)
@@ -106,7 +106,8 @@ enum lttng_error_code process_attr_value_from_comm(
        if (is_value_type_name(value_type) && value_view->size == 0) {
                ret = LTTNG_ERR_INVALID_PROTOCOL;
                goto error;
        if (is_value_type_name(value_type) && value_view->size == 0) {
                ret = LTTNG_ERR_INVALID_PROTOCOL;
                goto error;
-       } else if (!is_value_type_name(value_type) && value_view->size != 0) {
+       } else if (!is_value_type_name(value_type) && value_view &&
+                       value_view->size != 0) {
                ret = LTTNG_ERR_INVALID_PROTOCOL;
                goto error;
        }
                ret = LTTNG_ERR_INVALID_PROTOCOL;
                goto error;
        }
This page took 0.032525 seconds and 4 git commands to generate.