diff options
Diffstat (limited to 'src/tcpproxy.c')
-rw-r--r-- | src/tcpproxy.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tcpproxy.c b/src/tcpproxy.c index 273aad0..58f9a4c 100644 --- a/src/tcpproxy.c +++ b/src/tcpproxy.c @@ -167,6 +167,14 @@ int main(int argc, char* argv[]) } } + ret = listener_activate(&listeners); + if(ret) { + listener_clear(&listeners); + options_clear(&opt); + log_close(); + exit(-1); + } + priv_info_t priv; if(opt.username_) if(priv_init(&priv, opt.username_, opt.groupname_)) { |