(add_one_principal): catch error from UI_UTIL_read_pw_string
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14332 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -132,8 +132,11 @@ add_one_principal (const char *name,
|
||||
free (princ_name);
|
||||
ret = UI_UTIL_read_pw_string (pwbuf, sizeof(pwbuf), prompt, 1);
|
||||
free (prompt);
|
||||
if (ret)
|
||||
if (ret) {
|
||||
krb5_set_error_string(context, "failed to verify password");
|
||||
ret = KRB5_LIBOS_BADPWDMATCH;
|
||||
goto out;
|
||||
}
|
||||
password = pwbuf;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user