]> git.corax.cc Git - toolbox/commit
utils/ipc-ssltunnel: Initialize global variables
authorMatthias Kruk <m@m10k.eu>
Sat, 8 Oct 2022 07:38:57 +0000 (16:38 +0900)
committerMatthias Kruk <m@m10k.eu>
Sat, 8 Oct 2022 07:38:57 +0000 (16:38 +0900)
commitce959f477ebc28af30a35aaa3ac2652fa520728a
treefe4a2ce9623b5991d5dc64814d61ed099efc6871
parenteffca6ee3bb8cd86bf4a2408d3e2ab6a6f23e03f
utils/ipc-ssltunnel: Initialize global variables

In ipc-ssltunnel, global variables are used to store the topics and
hooks that are passed to ipc-tap and ipc-inject. These variables are
declared in main(), however not all of them are initialized. While
this is not a bug, the function should either initialize all of the
arrays or none at all.

This commit modifies ipc-ssltunnel to initialize all of the arrays
in main().
utils/ipc-sshtunnel.sh