projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: uninitialized fd value used in runas
[lttng-tools.git]
/
src
/
common
/
runas.c
diff --git
a/src/common/runas.c
b/src/common/runas.c
index 9fe6dcd58efaaa5f4c551efa0ba5e03017837543..317f687961d014f09b4021c644a75af94b10e941 100644
(file)
--- a/
src/common/runas.c
+++ b/
src/common/runas.c
@@
-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.023781 seconds
and
4
git commands to generate.