(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:
Assar Westerlund
1999-09-14 21:44:39 +00:00
parent 27e22209fc
commit af33e49582

View File

@@ -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);
}