(verify_user_otp): check return value from des_read_pw_string
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6964 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -131,7 +131,8 @@ verify_user_otp(char *username)
|
||||
}
|
||||
|
||||
snprintf (prompt, sizeof(prompt), "%s's %s Password: ", username, ss);
|
||||
des_read_pw_string(passwd, sizeof(passwd)-1, prompt, 0);
|
||||
if(des_read_pw_string(passwd, sizeof(passwd)-1, prompt, 0))
|
||||
return 1;
|
||||
return otp_verify_user (&ctx, passwd);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user