s4:ldb_register_samba_handlers - fix up and convert result codes to LDB/LDAP results
[kai/samba.git] / source4 / lib / ldb-samba / ldif_handlers.c
index 0ff6d32deecc837e99447f2bc419fd3617bee4c9..1c366104c05286e8e2ba356b78e0b7b20baf25ce 100644 (file)
@@ -1278,7 +1278,7 @@ int ldb_register_samba_handlers(struct ldb_context *ldb)
                }
 
                if (!s) {
-                       return -1;
+                       return LDB_ERR_OPERATIONS_ERROR;
                }
 
                ret = ldb_schema_attribute_add_with_syntax(ldb, samba_attributes[i].name, LDB_ATTR_FLAG_FIXED, s);