Commit 5497de69 authored by Mark Andrews's avatar Mark Andrews

2313. [cleanup] Silence Coverity warnings. Handle private stacks.

                        [RT #17447] [RT #17478]
parent f86c5d30
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]
......
......@@ -31,7 +31,7 @@
/*%
* Principal Author: Brian Wellington
* $Id: dst_parse.c,v 1.10 2007/08/28 07:20:42 tbox Exp $
* $Id: dst_parse.c,v 1.11 2008/01/22 01:34:15 marka Exp $
*/
#include <config.h>
......@@ -273,6 +273,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 { \
......@@ -364,7 +365,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.138 2007/10/19 17:15:53 explorer Exp $ */
/* $Id: rbt.c,v 1.139 2008/01/22 01:34:14 marka Exp $ */
/*! \file */
......@@ -2187,18 +2187,19 @@ dns_rbt_printall(dns_rbt_t *rbt) {
void
dns_rbtnodechain_init(dns_rbtnodechain_t *chain, isc_mem_t *mctx) {
/*
* Initialize 'chain'.
*/
/*
* Initialize 'chain'.
*/
REQUIRE(chain != NULL);
REQUIRE(chain != NULL);
chain->mctx = mctx;
chain->end = NULL;
chain->level_count = 0;
chain->level_matches = 0;
chain->mctx = mctx;
chain->end = NULL;
chain->level_count = 0;
chain->level_matches = 0;
memset(chain->levels, 0, sizeof(chain->levels));
chain->magic = CHAIN_MAGIC;
chain->magic = CHAIN_MAGIC;
}
isc_result_t
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment