BUG: https://bugzilla.samba.org/show_bug.cgi?id=12601
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
s->chunk.forest = &s->forest;
s->chunk.dest_dsa = &s->dest_dsa;
- return pytalloc_CObject_FromTallocPtr(s);
+ return pytalloc_GenericObject_steal(s);
}
return NULL;
}
- s = talloc_get_type(PyCObject_AsVoidPtr(py_state), struct replicate_state);
+ s = pytalloc_get_type(py_state, struct replicate_state);
if (!s) {
- PyErr_SetString(PyExc_TypeError, "Expected replication_state");
return NULL;
}