]> git.sur5r.net Git - openldap/commitdiff
ITS#6972 fix double-free in autogroup
authorHoward Chu <hyc@openldap.org>
Tue, 1 Nov 2011 20:40:57 +0000 (13:40 -0700)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 3 Nov 2011 00:27:13 +0000 (17:27 -0700)
contrib/slapd-modules/autogroup/autogroup.c

index c4e2fd83b6ebdc5478af45485e494388bacc9050..b1f95b7f0e4897413e817d67900f230fdb24e9cf 100644 (file)
@@ -632,11 +632,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], "," );