2313. [cleanup] Silence Coverity warnings. Handle private stacks.
[RT #17447] [RT #17478]
This commit is contained in:
3
CHANGES
3
CHANGES
@@ -1,3 +1,6 @@
|
||||
2313. [cleanup] Silence Coverity warnings. Handle private stacks.
|
||||
[RT #17447] [RT #17478]
|
||||
|
||||
2312. [cleanup] Silence Coverity warning in lib/isc/unix/socket.c.
|
||||
[RT #17458]
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
/*%
|
||||
* Principal Author: Brian Wellington
|
||||
* $Id: dst_parse.c,v 1.1.6.7 2006/05/16 03:59:26 marka Exp $
|
||||
* $Id: dst_parse.c,v 1.1.6.8 2008/01/22 01:43:20 marka Exp $
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
@@ -260,6 +260,7 @@ dst__privstruct_parse(dst_key_t *key, unsigned int alg, isc_lex_t *lex,
|
||||
REQUIRE(priv != NULL);
|
||||
|
||||
priv->nelements = 0;
|
||||
memset(priv->elements, 0, sizeof(priv->elements));
|
||||
|
||||
#define NEXTTOKEN(lex, opt, token) \
|
||||
do { \
|
||||
@@ -351,7 +352,6 @@ dst__privstruct_parse(dst_key_t *key, unsigned int alg, isc_lex_t *lex,
|
||||
goto fail;
|
||||
}
|
||||
|
||||
memset(&priv->elements[n], 0, sizeof(dst_private_element_t));
|
||||
tag = find_value(DST_AS_STR(token), alg);
|
||||
if (tag < 0 || TAG_ALG(tag) != alg) {
|
||||
ret = DST_R_INVALIDPRIVATEKEY;
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: rbt.c,v 1.128.18.7 2005/10/13 01:26:06 marka Exp $ */
|
||||
/* $Id: rbt.c,v 1.128.18.8 2008/01/22 01:43:20 marka Exp $ */
|
||||
|
||||
/*! \file */
|
||||
|
||||
@@ -2191,6 +2191,7 @@ dns_rbtnodechain_init(dns_rbtnodechain_t *chain, isc_mem_t *mctx) {
|
||||
chain->end = NULL;
|
||||
chain->level_count = 0;
|
||||
chain->level_matches = 0;
|
||||
memset(chain->levels, 0, sizeof(chain->levels));
|
||||
|
||||
chain->magic = CHAIN_MAGIC;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user