diff options
author | Miles Bader <miles@gnu.org> | 1997-02-06 22:24:00 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1997-02-06 22:24:00 +0000 |
commit | b6a4dd2193eb5997e45dcae046023c2f4d55982b (patch) | |
tree | 3f3ec6342efad4c8f42784c30aee4af813a059b5 | |
parent | 86e3fd03ea9c963a507df988b567f4caa9263296 (diff) |
(main):
Deal with crypt failing.
-rw-r--r-- | utils/login.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/login.c b/utils/login.c index 7bef4c19..cab40589 100644 --- a/utils/login.c +++ b/utils/login.c @@ -542,6 +542,10 @@ main(int argc, char *argv[]) encrypted = crypt (unencrypted, password); /* Paranoia may destroya. */ memset (unencrypted, 0, strlen (unencrypted)); + + if (! encrypted) + /* Something went wrong. */ + fail (51, errno, "Password encryption failed", 0); } else encrypted = unencrypted; |