Fix incorrect treatment of returning boolean

This fixes the free: invalid pointer problem.
This commit is contained in:
Ramana Kumar 2022-10-02 22:12:08 +01:00
parent cdbe1b7159
commit 040df7d520
No known key found for this signature in database
GPG Key ID: ED471C788B900433
1 changed files with 1 additions and 1 deletions

View File

@ -444,7 +444,7 @@ static PyObject* verify_kzg_proof_wrap(PyObject *self, PyObject *args) {
PyCapsule_GetPointer(s, "KZGSettings")) != C_KZG_OK)
return PyErr_Format(PyExc_RuntimeError, "verify_kzg_proof failed");
return out ? Py_True : Py_False;
if (out) Py_RETURN_TRUE; else Py_RETURN_FALSE;
}
static PyMethodDef ckzgmethods[] = {