From: Howard Chu Date: Wed, 3 Oct 2007 07:02:28 +0000 (+0000) Subject: Must terminate bind tester args list X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~563 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bf33d106fa04c7340f197bd2d1774f7a6fa29c7a;p=openldap Must terminate bind tester args list --- diff --git a/tests/progs/slapd-tester.c b/tests/progs/slapd-tester.c index 83aad035ed..da488372a3 100644 --- a/tests/progs/slapd-tester.c +++ b/tests/progs/slapd-tester.c @@ -902,6 +902,7 @@ main( int argc, char **argv ) bargs[banum + 3] = bcreds[jj]; bargs[banum + 4] = "-a"; bargs[banum + 5] = battrs[jj]; + bargs[banum + 6] = NULL; } else { bargs[banum - 3] = breqs[jj]; @@ -1077,6 +1078,13 @@ fork_child( char *prog, char **args ) #endif execvp( prog, args ); tester_perror( "execvp", NULL ); + { int i; + for (i=0; args[i]; i++); + fprintf(stderr,"%d args\n", i); + for (i=0; args[i]; i++) + fprintf(stderr,"%d %s\n", i, args[i]); + } + exit( EXIT_FAILURE ); break;