pydsdb: Fix returning of ldb.MessageElement.
commitb96b1e88f760c92c7d9bb7e732f72d7e73a68907
authorAndrew Bartlett <abartlet@samba.org>
Tue, 16 Feb 2016 02:15:44 +0000 (16 15:15 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 8 Mar 2016 00:58:25 +0000 (8 01:58 +0100)
treef2331804b892835fd48b1c56f1e900356a0a24e8
parent02de793e013c1905cccc0c760bb64f45d37e3051
pydsdb: Fix returning of ldb.MessageElement.

This object is not based on pytalloc_Object and so this causes
a segfault (later a failure) when the struct definitions diverge.
We must also not reuse the incoming ldb_message_element as a talloc
context and overwrite the values, instead we should create a new
object and return that.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
source4/dsdb/pydsdb.c