diff options
| author | Florian Westphal <fw@strlen.de> | 2006-04-29 16:19:46 +0000 |
|---|---|---|
| committer | Florian Westphal <fw@strlen.de> | 2006-04-29 16:19:46 +0000 |
| commit | 5d0ba011c7a3d71e00c677edd74a5383e3f15fac (patch) | |
| tree | d47955f66788295e81258376e87f2977e63f7718 /src | |
| parent | 87f4b1c6f64f85556533f01d95da1cf83a91d4c6 (diff) | |
| download | ngircd-5d0ba011c7a3d71e00c677edd74a5383e3f15fac.tar.gz ngircd-5d0ba011c7a3d71e00c677edd74a5383e3f15fac.zip | |
Fix Connection Pool resizing.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/conn.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c index f8d396dd..2bd537c4 100644 --- a/src/ngircd/conn.c +++ b/src/ngircd/conn.c @@ -17,7 +17,7 @@ #include "portab.h" #include "io.h" -static char UNUSED id[] = "$Id: conn.c,v 1.192 2006/04/23 10:37:27 fw Exp $"; +static char UNUSED id[] = "$Id: conn.c,v 1.193 2006/04/29 16:19:46 fw Exp $"; #include "imp.h" #include <assert.h> @@ -958,7 +958,8 @@ New_Connection( int Sock ) /* Adjust pointer to new block */ My_Connections = array_start(&My_ConnArray); - Pool_Size = new_Pool_Size; + while (Pool_Size < new_Pool_Size) + Init_Conn_Struct(Pool_Size++); } c = Client_NewLocal( new_sock, inet_ntoa( new_addr.sin_addr ), CLIENT_UNKNOWN, false ); |