]> git.sur5r.net Git - openldap/commitdiff
Revert rbuf length setting in prev commit
authorHoward Chu <hyc@openldap.org>
Mon, 27 Nov 2006 04:15:55 +0000 (04:15 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 27 Nov 2006 04:15:55 +0000 (04:15 +0000)
clients/tools/ldapmodify.c

index 8dc0403fc315edeec7a042d6912d65a6d980075b..5556b54634167e65a6be2e4a9db16592e5aa55e9 100644 (file)
@@ -335,7 +335,7 @@ main( int argc, char **argv )
                &rbuf, &lmax ))
        {
                if ( rejfp ) {
-                       len = lmax;
+                       len = strlen( rbuf );
                        if (( rejbuf = (char *)ber_memalloc( len+1 )) == NULL ) {
                                perror( "malloc" );
                                exit( EXIT_FAILURE );