Skip to content
Snippets Groups Projects
Commit 70f28f1b authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

segfault by ldappasswd -A -S (ITS#714) fix

suggested by Fumitoshi UKAI <ukai@debian.or.jp>
parent f319444d
No related branches found
No related tags found
No related merge requests found
......@@ -507,10 +507,10 @@ main( int argc, char *argv[] )
if( want_oldpw && oldpw == NULL ) {
/* prompt for old password */
char *ckoldpw;
newpw = strdup(getpassphrase("Old password: "));
oldpw = strdup(getpassphrase("Old password: "));
ckoldpw = getpassphrase("Re-enter old password: ");
if( newpw== NULL || ckoldpw == NULL ||
if( oldpw== NULL || ckoldpw == NULL ||
strncmp( oldpw, ckoldpw, strlen(oldpw) ))
{
fprintf( stderr, "passwords do not match\n" );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment