From: Yoshiyuki Asaba Date: Tue, 22 May 2007 06:27:13 +0000 (+0000) Subject: Add an error message. X-Git-Tag: V3_4~34 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=72e2d0c719e8db2776d91d23679086198e555105;p=pgpool1.git Add an error message. --- diff --git a/pool_process_query.c b/pool_process_query.c index fec05fb..80000ef 100644 --- a/pool_process_query.c +++ b/pool_process_query.c @@ -2739,7 +2739,10 @@ POOL_STATUS SimpleForwardToBackend(char kind, POOL_CONNECTION *frontend, POOL_CO if (len == 0) return POOL_CONTINUE; else if (len < 0) + { + pool_error("SimpleFowardToBackend: invalid message length"); return POOL_END; + } p = pool_read2(frontend, len); if (p == NULL)