From: Howard Chu Date: Mon, 5 Feb 2007 12:39:37 +0000 (+0000) Subject: Fix typos X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~74 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4e193bc5cb2734eb344eb2d0368ba70fc3463c0f;p=openldap Fix typos --- diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index 9ec4b7f10b..0ae88f6ea0 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -1602,7 +1602,7 @@ config_generic(ConfigArgs *c) { si = ch_malloc( sizeof(ServerID) + len + 1 ); si->si_url.bv_val = (char *)(si+1); si->si_url.bv_len = len; - strcpy( si->si_url.bv_val, c->argv[3] ); + strcpy( si->si_url.bv_val, c->argv[2] ); } else { if ( sid_list ) { snprintf( c->msg, sizeof( c->msg ), @@ -4113,6 +4113,8 @@ config_add_internal( CfBackInfo *cfb, Entry *e, ConfigArgs *ca, SlapReply *rs, ConfigTable *ct; char *ptr; + memset( ca, 0, sizeof(ConfigArgs)); + /* Make sure parent exists and entry does not. But allow * Databases and Overlays to be inserted. Don't do any * auto-renumbering if manageDSAit control is present. @@ -4148,8 +4150,6 @@ config_add_internal( CfBackInfo *cfb, Entry *e, ConfigArgs *ca, SlapReply *rs, oc_at = attr_find( e->e_attrs, slap_schema.si_ad_objectClass ); if ( !oc_at ) return LDAP_OBJECT_CLASS_VIOLATION; - memset( ca, 0, sizeof(ConfigArgs)); - /* Fake the coordinates based on whether we're part of an * LDAP Add or if reading the config dir */