Move CLI socket to the newly created CLI's pool.
(thanks to Andreas for the original idea)
This commit is contained in:
parent
38a608c55a
commit
ea0ac8f69a
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue