pgpool2.git / summary / log / commit / refs
commit 29481a388d941fa1fd175e72c858b881b9fcec03
Author: Tatsuo Ishii <ishii at sraoss.co.jp>
Date: Mon Mar 10 15:08:16 2008 +0000
Fix using uninialized varible in pool_read_message_length()
pool_auth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pool_auth.c b/pool_auth.c
index 3ad1d2354..3a79ce965 100644
--- a/pool_auth.c
+++ b/pool_auth.c
@@ -951,7 +951,7 @@ int pool_read_message_length(POOL_CONNECTION_POOL *cp)
status = pool_read(CONNECTION(cp, MASTER_NODE_ID), &length0, sizeof(length0));
if (status < 0)
{
- pool_error("pool_read_message_length: error while reading message length in slot %d", i);
+ pool_error("pool_read_message_length: error while reading message length in slot %d", MASTER_NODE_ID);
return -1;
}
length0 = ntohl(length0);
[parent: ca6d564c033e]