]> git.sur5r.net Git - openldap/commitdiff
ITS#6978 bail out on invalid input
authorHoward Chu <hyc@openldap.org>
Thu, 23 Jun 2011 20:17:08 +0000 (13:17 -0700)
committerHoward Chu <hyc@openldap.org>
Thu, 23 Jun 2011 20:17:08 +0000 (13:17 -0700)
libraries/libldap/ldifutil.c

index ecc059146a393258492a9f405b069e754a193a5b..96b13c1131c7ba0a50b5e37d0963ed3c6e9b632d 100644 (file)
@@ -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;