Setting nTSecurityDescriptor via LDAP fails
commit4fff36f618420dea2e004f87ae5a2699eabd140a
authorzahari <zahari@darkstar.zahari.local>
Fri, 20 Mar 2009 10:03:29 +0000 (20 12:03 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Fri, 20 Mar 2009 21:54:15 +0000 (20 22:54 +0100)
tree70fc6026b8b5dbda953d8b8e9f6ef6ace35f5fb1
parentee577ef0eef2d666504d1b78bb102b5c2e070b03
Setting nTSecurityDescriptor via LDAP fails

Fix for the problem was substitute talloc_strndup() with
talloc_memdup(), allocate 1 more character and put null character
('\0') in the extra place so data copied is null terminated.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
source4/lib/ldb/pyldb.c