From 32d825255e4d1a5c0a3c69f71b48a71bb5213257 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Mill=C3=A1n?= Date: Wed, 14 Mar 2018 13:06:29 +0100 Subject: Fix #370. ctrl_tcp: wrong assignent (#371) --- modules/ctrl_tcp/ctrl_tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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); -- cgit v1.2.3