While processing "show pool_nodes", the buffer for hostname was too
short. It should be same size as the buffer used for pgpool.conf.
Problem reported by a twitter user who is using pgpool on AWS (which
could have very long hostname).
/* nodes report struct */
typedef struct {
char node_id[POOLCONFIG_MAXIDLEN+1];
- char hostname[POOLCONFIG_MAXIDENTLEN+1];
+ char hostname[MAX_DB_HOST_NAMELEN+1];
char port[POOLCONFIG_MAXPORTLEN+1];
char status[POOLCONFIG_MAXSTATLEN+1];
char lb_weight[POOLCONFIG_MAXWEIGHTLEN+1];