diff --git a/clients/tools/ldappasswd.c b/clients/tools/ldappasswd.c index a8c7f98cd1..52d2cf6f11 100644 --- a/clients/tools/ldappasswd.c +++ b/clients/tools/ldappasswd.c @@ -166,7 +166,7 @@ main( int argc, char *argv[] ) } if( oldpwfile ) { - rc = lutil_get_filed_password( prog, &oldpw ); + rc = lutil_get_filed_password( oldpwfile, &oldpw ); if( rc ) return EXIT_FAILURE; } @@ -187,7 +187,7 @@ main( int argc, char *argv[] ) } if( newpwfile ) { - rc = lutil_get_filed_password( prog, &newpw ); + rc = lutil_get_filed_password( newpwfile, &newpw ); if( rc ) return EXIT_FAILURE; }