]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Move CLI socket to the newly created CLI's pool.
authorMartin Mares <mj@ucw.cz>
Mon, 31 May 2004 22:00:18 +0000 (22:00 +0000)
committerMartin Mares <mj@ucw.cz>
Mon, 31 May 2004 22:00:18 +0000 (22:00 +0000)
(thanks to Andreas for the original idea)

sysdep/unix/main.c

index 2479cd6af2178c6c2a14969cf4516fc1929c4909..5315bfe78212603efab09bb4dcbc79bc2e0c9cb6 100644 (file)
@@ -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;
 }