Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
78af50a2
Commit
78af50a2
authored
Jun 24, 2015
by
Francis Dupont
Browse files
[3919] Assign classcode_ to avoid cppcheck warning
parent
997f1395
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/dns/rrclass.cc
View file @
78af50a2
// Copyright (C) 2010 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
...
...
@@ -31,10 +31,12 @@ namespace isc {
namespace
dns
{
RRClass
::
RRClass
(
const
std
::
string
&
class_str
)
{
if
(
!
RRParamRegistry
::
getRegistry
().
textToClassCode
(
class_str
,
classcode_
))
{
uint16_t
classcode
;
if
(
!
RRParamRegistry
::
getRegistry
().
textToClassCode
(
class_str
,
classcode
))
{
isc_throw
(
InvalidRRClass
,
"Unrecognized RR class string: "
+
class_str
);
}
classcode_
=
classcode
;
}
RRClass
::
RRClass
(
InputBuffer
&
buffer
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment