From: Howard Chu Date: Thu, 23 Jun 2011 20:17:08 +0000 (-0700) Subject: ITS#6978 bail out on invalid input X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d0973003f79111b9894a218b7a6b9a455a675623;p=openldap ITS#6978 bail out on invalid input --- diff --git a/libraries/libldap/ldifutil.c b/libraries/libldap/ldifutil.c index ecc059146a..96b13c1131 100644 --- a/libraries/libldap/ldifutil.c +++ b/libraries/libldap/ldifutil.c @@ -158,7 +158,7 @@ ldap_parse_ldif_record_x( fprintf( stderr, _("%s: invalid format (line %d) entry: \"%s\"\n"), errstr, linenum+i, dn == NULL ? "" : dn ); rc = LDAP_PARAM_ERROR; - break; + goto leave; } lr->lr_freeval[i] = freev;