Fix: relayd: Dereference before null check
[lttng-tools.git] / src / common / relayd / relayd.c
index 1ba0ccf99bdcb9586f8299e3295d43c3f75af13c..12f70f7e0bf8ad39dbcb5489b84fa953e3626bda 100644 (file)
@@ -191,7 +191,7 @@ static int relayd_create_session_2_11(struct lttcomm_relayd_sock *rsock,
                goto error;
        }
        dst += hostname_len;
-       if (base_path && lttng_strncpy(dst, base_path, base_path_len)) {
+       if (lttng_strncpy(dst, base_path, base_path_len)) {
                ret = -1;
                goto error;
        }
This page took 0.025852 seconds and 5 git commands to generate.