summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/analysis
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/pychrysalide/analysis')
-rw-r--r--plugins/pychrysalide/analysis/db/certs.c4
-rw-r--r--plugins/pychrysalide/analysis/db/certs.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/pychrysalide/analysis/db/certs.c b/plugins/pychrysalide/analysis/db/certs.c
index dc46877..729c9a4 100644
--- a/plugins/pychrysalide/analysis/db/certs.c
+++ b/plugins/pychrysalide/analysis/db/certs.c
@@ -289,6 +289,8 @@ PyTypeObject *get_python_certs_type(void)
.tp_methods = py_certs_methods,
.tp_getset = py_certs_getseters,
+ .tp_new = no_python_constructor_allowed,
+
};
return &py_certs_type;
@@ -317,8 +319,6 @@ bool ensure_python_certs_is_registered(void)
if (!PyType_HasFeature(type, Py_TPFLAGS_READY))
{
- type->tp_new = PyType_GenericNew;
-
if (PyType_Ready(type) != 0)
return false;
diff --git a/plugins/pychrysalide/analysis/db/certs.h b/plugins/pychrysalide/analysis/db/certs.h
index 5c1da5d..bafa2ae 100644
--- a/plugins/pychrysalide/analysis/db/certs.h
+++ b/plugins/pychrysalide/analysis/db/certs.h
@@ -39,4 +39,4 @@ bool ensure_python_certs_is_registered(void);
-#endif /* _PLUGINS_PYCHRYSALIDE_ANALYSIS_DB_CERTSS_H */
+#endif /* _PLUGINS_PYCHRYSALIDE_ANALYSIS_DB_CERTS_H */