pgpool2.git / summary / log / commit / refs

commit    0e48728f84da20d6f6023a6111ca44df2acc4646
Author:   Tatsuo Ishii <ishii@postgresql.org>
Date:     Fri Oct 17 11:08:12 2014 +0000

    Fix uninitialized variable.
    
    Per Coverity 1234603.


src/utils/pool_ip.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/pool_ip.c b/src/utils/pool_ip.c index c47179bc0..a33663aae 100644 --- a/src/utils/pool_ip.c +++ b/src/utils/pool_ip.c @@ -9,7 +9,7 @@ * pgpool: a language independent connection pool server for PostgreSQL * written by Tatsuo Ishii * - * Portions Copyright (c) 2003-2010 PgPool Global Development Group + * Portions Copyright (c) 2003-2014 PgPool Global Development Group * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * @@ -463,6 +463,8 @@ SockAddr_cidr_mask(struct sockaddr_storage * mask, char *numbits, int family) struct sockaddr_in6 mask6; int i; + memset(&mask6, 0, sizeof(mask6)); + if (bits < 0 || bits > 128) return -1; for (i = 0; i < 16; i++) [parent: a2d49e324a4d]