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
ISC Open Source Projects
Kea
Commits
3602cd9d
Commit
3602cd9d
authored
Jan 30, 2012
by
JINMEI Tatuya
Browse files
[1574b] made sure Py_True/False gained refcount on return.
parent
a2943fb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/dns/python/nsec3hash_python.cc
View file @
3602cd9d
...
...
@@ -134,7 +134,9 @@ NSEC3Hash_match(PyObject* po_self, PyObject* args) {
const
bool
matched
=
self
->
cppobj
->
match
(
dynamic_cast
<
const
generic
::
NSEC3
&>
(
PyRdata_ToRdata
(
po_rdata
)));
return
(
matched
?
Py_True
:
Py_False
);
PyObject
*
ret
=
matched
?
Py_True
:
Py_False
;
Py_INCREF
(
ret
);
return
(
ret
);
}
}
catch
(
const
exception
&
ex
)
{
const
string
ex_what
=
"Unexpected failure in NSEC3Hash.match: "
+
...
...
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