From: Howard Chu Date: Tue, 1 Nov 2011 20:40:57 +0000 (-0700) Subject: ITS#6972 fix double-free in autogroup X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3a096b300cf32e403407f00d20fc6c69b22984c2;p=openldap ITS#6972 fix double-free in autogroup --- diff --git a/contrib/slapd-modules/autogroup/autogroup.c b/contrib/slapd-modules/autogroup/autogroup.c index a6ea687cba..4d5e9ca68f 100644 --- a/contrib/slapd-modules/autogroup/autogroup.c +++ b/contrib/slapd-modules/autogroup/autogroup.c @@ -630,11 +630,12 @@ autogroup_add_group( Operation *op, autogroup_info_t *agi, autogroup_def_t *agd, } if ( i > 1 ) { - Debug( LDAP_DEBUG_ANY, "autogroup_add_group: to much attributes specified in url <%s>\n", + Debug( LDAP_DEBUG_ANY, "autogroup_add_group: too many attributes specified in url <%s>\n", bv->bv_val, 0, 0); /* FIXME: error? */ ldap_free_urldesc( lud ); ch_free( agf ); + continue; } agf->agf_anlist = str2anlist( NULL, lud->lud_attrs[0], "," );