Browse Source

[1575] used the NSEC3Hash factory in the python wrapper, too.

JINMEI Tatuya 13 years ago
parent
commit
ea2af1351e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/dns/python/nsec3hash_python.cc

+ 1 - 1
src/lib/dns/python/nsec3hash_python.cc

@@ -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);