summaryrefslogtreecommitdiff
path: root/usr.sbin/ldapd/modify.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ldapd/modify.c')
-rw-r--r--usr.sbin/ldapd/modify.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ldapd/modify.c b/usr.sbin/ldapd/modify.c
index b2a25d8ff1a..79921dd14c2 100644
--- a/usr.sbin/ldapd/modify.c
+++ b/usr.sbin/ldapd/modify.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: modify.c,v 1.3 2010/06/23 13:10:14 martinh Exp $ */
+/* $OpenBSD: modify.c,v 1.4 2010/06/29 02:45:46 martinh Exp $ */
/*
* Copyright (c) 2009, 2010 Martin Hedenfalk <martin@bzero.se>
@@ -139,7 +139,7 @@ ldap_modify(struct request *req)
int rc;
char *dn;
long long op;
- const char *attr;
+ char *attr;
struct ber_element *mods, *entry, *mod, *vals, *a, *set;
struct namespace *ns;
struct attr_type *at;
@@ -181,7 +181,7 @@ ldap_modify(struct request *req)
goto done;
}
- if ((at = lookup_attribute(attr)) == NULL && !ns->relax) {
+ if ((at = lookup_attribute(conf->schema, attr)) == NULL && !ns->relax) {
log_debug("unknown attribute type %s", attr);
rc = LDAP_NO_SUCH_ATTRIBUTE;
goto done;