summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Luis Millán <jmillan@aliax.net>2018-03-14 13:06:29 +0100
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2018-03-14 13:06:29 +0100
commit32d825255e4d1a5c0a3c69f71b48a71bb5213257 (patch)
tree1fd21c915eb4d91646cef7ae30d3fdfee9120b59
parent57bd2be20bcc484499c5d57a96ebaa8a85787735 (diff)
Fix #370. ctrl_tcp: wrong assignent (#371)
-rw-r--r--modules/ctrl_tcp/ctrl_tcp.c2
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);