diff options
author | Christian Pointner <equinox@spreadspace.org> | 2010-12-09 20:35:42 +0000 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2010-12-09 20:35:42 +0000 |
commit | 8cd030696dd1bf0864443b4c745063821d9cd76c (patch) | |
tree | 6b52678b50bcf7bcd149c7e5858e9c9e5cefc30b /src/tcpproxy.c | |
parent | advanced new lines (diff) |
introduced listener states
git-svn-id: https://svn.spreadspace.org/tcpproxy/trunk@41 e61f0598-a718-4e21-a8f0-0aadfa62ad6b
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_)) { |