From d9b78c0a6999cdf452fd6305a1e81b73605ea307 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Sun, 18 Oct 2015 23:37:04 +0300 Subject: [PATCH] Initialize CDB Fixes CID#1030064 --- modules/tinydnsbackend/cdb.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/tinydnsbackend/cdb.cc b/modules/tinydnsbackend/cdb.cc index a44dc6e41..e6d1e7b43 100644 --- a/modules/tinydnsbackend/cdb.cc +++ b/modules/tinydnsbackend/cdb.cc @@ -17,12 +17,17 @@ CDB::CDB(const string &cdbfile) throw new PDNSException("Failed to open cdb database file '"+cdbfile+"'. Error: " + stringerror()); } + memset(&d_cdbf,0,sizeof(struct cdb_find)); int cdbinit = cdb_init(&d_cdb, d_fd); if (cdbinit < 0) { L<