break if des_read_pw_string() != 0
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2497 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -176,7 +176,8 @@ main (int argc, char **argv)
|
||||
krb5_unparse_name(context, principal, &p);
|
||||
asprintf(&prompt, "%s's Password: ", p);
|
||||
free(p);
|
||||
des_read_pw_string(pwbuf, sizeof(pwbuf), prompt, 0);
|
||||
if(des_read_pw_string(pwbuf, sizeof(pwbuf), prompt, 0))
|
||||
return 1;
|
||||
free(prompt);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user