diff options
author | Dimitri Staessens <dimitri.staessens@ugent.be> | 2018-05-07 17:21:26 +0200 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@ugent.be> | 2018-05-07 17:27:49 +0200 |
commit | 9a262df133d8305c06b3f99f505e4d07a26cca9d (patch) | |
tree | c2a0e86178ac42196586c51b750dfa2ea736480c /src/tools/oping | |
parent | 7d6fabc5bfb227ed76376a68a820aa243b0d7f53 (diff) | |
download | ouroboros-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 <dimitri.staessens@ugent.be>
Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be>
Diffstat (limited to 'src/tools/oping')
0 files changed, 0 insertions, 0 deletions