use errx on failures, not warnx
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14587 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -211,7 +211,7 @@ s2k(char *password, const char *salt, char akey[8])
|
||||
|
||||
DES_string_to_key(pw, &k);
|
||||
if (memcmp(akey, &k, 8) != 0)
|
||||
warnx("key wrong for %s", pw);
|
||||
errx(1, "key wrong for %s", pw);
|
||||
free(pw);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user