summaryrefslogtreecommitdiff
path: root/src/tools/irm/irm_bind_process.c
diff options
context:
space:
mode:
authorDimitri Staessens <[email protected]>2018-05-07 17:21:26 +0200
committerSander Vrijders <[email protected]>2018-05-07 17:27:49 +0200
commit9a262df133d8305c06b3f99f505e4d07a26cca9d (patch)
treec2a0e86178ac42196586c51b750dfa2ea736480c /src/tools/irm/irm_bind_process.c
parent7d6fabc5bfb227ed76376a68a820aa243b0d7f53 (diff)
downloadouroboros-9a262df133d8305c06b3f99f505e4d07a26cca9d.tar.gz
ouroboros-9a262df133d8305c06b3f99f505e4d07a26cca9d.zip
irmd: Fix use-after-free in mainloop
The ret_msg struct was free'd but its result could be accessed after a failed write. Fixed by storing the results of the commands in a temporary variable and accessing this upon write failure. Also simplifies some other code. Signed-off-by: Dimitri Staessens <[email protected]> Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/tools/irm/irm_bind_process.c')
0 files changed, 0 insertions, 0 deletions