Commit 997f1395 authored by Francis Dupont's avatar Francis Dupont
Browse files

[3919] Added some missing initializations

parent f4b5382d
// Copyright (C) 2011 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2011, 2015 Internet Systems Consortium, Inc. ("ISC")
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
......@@ -34,7 +34,7 @@ using namespace isc::dns;
class NAPTRImpl {
public:
NAPTRImpl() : replacement(".") {}
NAPTRImpl() : order(0, preference(0), replacement(".") {}
NAPTRImpl(InputBuffer& buffer, size_t rdata_len) : replacement(".") {
if (rdata_len < 4 || buffer.getLength() - buffer.getPosition() < 4) {
......
......@@ -5,7 +5,7 @@
///////////////
///////////////
// Copyright (C) 2010-2014 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2010-2015 Internet Systems Consortium, Inc. ("ISC")
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
......@@ -2565,7 +2565,7 @@ namespace generic {
class NAPTRImpl {
public:
NAPTRImpl() : replacement(".") {}
NAPTRImpl() : order(0, preference(0), replacement(".") {}
NAPTRImpl(InputBuffer& buffer, size_t rdata_len) : replacement(".") {
if (rdata_len < 4 || buffer.getLength() - buffer.getPosition() < 4) {
......
Supports Markdown
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