]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1575] used the NSEC3Hash factory in the python wrapper, too.
authorJINMEI Tatuya <jinmei@isc.org>
Fri, 27 Jan 2012 21:54:14 +0000 (13:54 -0800)
committerJINMEI Tatuya <jinmei@isc.org>
Fri, 27 Jan 2012 21:54:14 +0000 (13:54 -0800)
src/lib/dns/python/nsec3hash_python.cc

index 52ce08f29d83a0a83217f318c753908a4dbd4a4c..cd97a80ba0d47e4876356922a2f15d6f33d80e54 100644 (file)
@@ -59,7 +59,7 @@ NSEC3Hash_init(PyObject* po_self, PyObject* args, PyObject*) {
                              "not %.200s", po_rdata->ob_type->tp_name);
                 return (-1);
             }
-            self->cppobj = new NSEC3Hash(
+            self->cppobj = NSEC3Hash::create(
                 dynamic_cast<const generic::NSEC3PARAM&>(
                     PyRdata_ToRdata(po_rdata)));
             return (0);