From: Martin Mares Date: Mon, 31 May 2004 22:00:18 +0000 (+0000) Subject: Move CLI socket to the newly created CLI's pool. X-Git-Tag: v1.2.0~379 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea0ac8f69aec4eff8109eb3d74cc0ca5a330fa58;p=thirdparty%2Fbird.git Move CLI socket to the newly created CLI's pool. (thanks to Andreas for the original idea) --- diff --git a/sysdep/unix/main.c b/sysdep/unix/main.c index 2479cd6af..5315bfe78 100644 --- a/sysdep/unix/main.c +++ b/sysdep/unix/main.c @@ -266,6 +266,7 @@ cli_connect(sock *s, int size) s->pool = c->pool; /* We need to have all the socket buffers allocated in the cli pool */ c->rx_pos = c->rx_buf; c->rx_aux = NULL; + rmove(s, c->pool); return 1; }