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:
Assar Westerlund
1997-07-20 14:29:28 +00:00
parent 0a879514da
commit dff9f8fb1c

View File

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