spelling
authorAndrew Bartlett <abartlet@samba.org>
Fri, 21 Nov 2008 07:21:51 +0000 (18:21 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 21 Nov 2008 07:21:51 +0000 (18:21 +1100)
source4/lib/ldb/ldb_wrap.c
source4/lib/ldb/tests/python/ldap.py

index 7e03ce8bffbc7e4ae28ca09fd1cd873f486aa13b..78e85aaec77c644f5ca39790578485bc80bdcd6e 100644 (file)
@@ -3060,6 +3060,7 @@ static void py_ldb_debug(void *context, enum ldb_debug_level level, const char *
         if (ldif == NULL) {
             return Py_None;
         } else {
+           talloc_steal(NULL, ldif);
             return Py_BuildValue((char *)"(iO)", ldif->changetype, 
                    SWIG_NewPointerObj(ldif->msg, SWIGTYPE_p_ldb_message, 0));
         }
index 4ae4b419e863a1ab9fcba063f50cff9d454b80f7..5c11d1fda9ed11d9f01d9684e3e20f491baff0dd 100755 (executable)
@@ -591,7 +591,7 @@ member: cn=ldaptestuser4,cn=ldaptestcontainer,""" + self.base_dn + """
 
         print "Testing ldb.search for (&(member=CN=ldaptestuser4,CN=ldaptestcontainer2," + self.base_dn + ")(objectclass=group)) to check subtree renames and linked attributes"
         res = ldb.search(self.base_dn, expression="(&(member=CN=ldaptestuser4,CN=ldaptestcontainer2," + self.base_dn + ")(objectclass=group))", scope=SCOPE_SUBTREE)
-        self.assertEquals(len(res), 1, "Could not find (&(member=CN=ldaptestuser4,CN=ldaptestcontainer2," + self.base_dn + ")(objectclass=group)), perhaps linked attributes are not conistant with subtree renames?")
+        self.assertEquals(len(res), 1, "Could not find (&(member=CN=ldaptestuser4,CN=ldaptestcontainer2," + self.base_dn + ")(objectclass=group)), perhaps linked attributes are not consistant with subtree renames?")
 
         print "Testing ldb.rename (into itself) of cn=ldaptestcontainer2," + self.base_dn + " to cn=ldaptestcontainer,cn=ldaptestcontainer2," + self.base_dn
         try: