Fix: uninitialized fd value used in runas
[lttng-tools.git] / src / common / runas.c
index 9fe6dcd58efaaa5f4c551efa0ba5e03017837543..317f687961d014f09b4021c644a75af94b10e941 100644 (file)
@@ -488,6 +488,9 @@ int handle_one_cmd(struct run_as_worker *worker)
        run_as_fct cmd;
        uid_t prev_euid;
 
+       memset(&sendret, 0, sizeof(sendret));
+       sendret.fd = -1;
+
        /*
         * Stage 1: Receive run_as_data struct from the master.
         * The structure contains the command type and all the parameters needed for
This page took 0.024691 seconds and 5 git commands to generate.