r26529: Indeed, this belongs in the schema module. Ranged results need to use
[jelmer/samba4-debian.git] / source / lib / ldb / common / ldb_msg.c
index 528d1d54f1e0f4658fdedd57af767de3139b8c3a..c1ea9db56bfb11a4319fb6503258199bcac471dd 100644 (file)
@@ -124,11 +124,6 @@ int ldb_msg_add_empty(     struct ldb_message *msg,
 {
        struct ldb_message_element *els;
 
-       /* FIXME: we should probably leave this to the schema module to check */
-       if (! ldb_valid_attr_name(attr_name)) {
-               return LDB_ERR_OPERATIONS_ERROR;
-       }
-
        els = talloc_realloc(msg, msg->elements, 
                             struct ldb_message_element, msg->num_elements+1);
        if (!els) {