From ffb59d243a350ed525850e864b38af0ecb0ffea5 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 17 Nov 1999 12:00:21 +0000 Subject: Command line interface now works. --- nest/cli.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nest/cli.c') diff --git a/nest/cli.c b/nest/cli.c index 41907b3..4ef0f83 100644 --- a/nest/cli.c +++ b/nest/cli.c @@ -171,6 +171,7 @@ cli_new(void *priv) c->event->data = c; c->tx_buf = c->tx_pos = c->tx_write = NULL; c->cont = cli_hello; + c->cleanup = NULL; c->last_reply = 0; c->parser_pool = lp_new(c->pool, 4096); ev_schedule(c->event); @@ -194,6 +195,8 @@ cli_written(cli *c) void cli_free(cli *c) { + if (c->cleanup) + c->cleanup(c); rfree(c->pool); } -- cgit v1.2.3