]> git.sur5r.net Git - openldap/commitdiff
Must terminate bind tester args list
authorHoward Chu <hyc@openldap.org>
Wed, 3 Oct 2007 07:02:28 +0000 (07:02 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 3 Oct 2007 07:02:28 +0000 (07:02 +0000)
tests/progs/slapd-tester.c

index 83aad035ed4d12a1a4e6369c11ceea1d816c1ab3..da488372a340cca6765742cedfa2940c88529e78 100644 (file)
@@ -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;