uint16_t tlen = htons(vpacket.size());
const char *lenP = reinterpret_cast<const char*>(&tlen);
+ len = 0; // in case of error
localip.sin4.sin_family = ip.sin4.sin_family;
if (getsockname(connection.d_handler->getDescriptor(), reinterpret_cast<sockaddr*>(&localip), &slen) != 0) {
return LWResult::Result::PermanentError;
bool needWildcardProof = false;
bool gatherWildcardProof = false;
- unsigned int wildcardLabelsCount;
+ unsigned int wildcardLabelsCount = 0;
*rcode = updateCacheFromRecords(depth, lwr, qname, qtype, auth, wasForwarded, ednsmask, state, needWildcardProof, gatherWildcardProof, wildcardLabelsCount, sendRDQuery, remoteIP);
if (*rcode != RCode::NoError) {
return true;