diff options
Diffstat (limited to 'modules/ctrl_tcp/ctrl_tcp.c')
-rw-r--r-- | modules/ctrl_tcp/ctrl_tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ctrl_tcp/ctrl_tcp.c b/modules/ctrl_tcp/ctrl_tcp.c index e030551..1bba161 100644 --- a/modules/ctrl_tcp/ctrl_tcp.c +++ b/modules/ctrl_tcp/ctrl_tcp.c @@ -247,7 +247,7 @@ static void tcp_conn_handler(const struct sa *peer, void *arg) /* only one connection allowed */ st->tc = mem_deref(st->tc); - st->tc = mem_deref(st->ns); + st->ns = mem_deref(st->ns); (void)tcp_accept(&st->tc, st->ts, NULL, NULL, tcp_close_handler, st); (void)netstring_insert(&st->ns, st->tc, 0, command_handler, st); |