Clarify empty string/NULL filter errors
[lttng-tools.git] / src / bin / lttng-sessiond / main.c
index df4760602b5e4838f90cf124764fbbdad06d5ef4..d5cfc0e2769e58a6b13b0870ef2dace8b0a59c85 100644 (file)
@@ -2853,6 +2853,10 @@ skip_domain:
                        ret = LTTNG_ERR_FILTER_INVAL;
                        goto error;
                }
+               if (cmd_ctx->lsm->u.enable.bytecode_len == 0) {
+                       ret = LTTNG_ERR_FILTER_INVAL;
+                       goto error;
+               }
                bytecode = zmalloc(cmd_ctx->lsm->u.enable.bytecode_len);
                if (!bytecode) {
                        ret = LTTNG_ERR_FILTER_NOMEM;
This page took 0.023231 seconds and 4 git commands to generate.