summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2020-11-13 04:21:04 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2020-11-13 04:21:04 +0100
commit2f6076cdaada2132b670b5ef25ad80c76a916c5a (patch)
treeffa4d11e6a0c328d4af1943ccd02aa80b0991627
parent27b5b58381dfebb32315f78410694ba6b6551b8e (diff)
libcrypt: set_errno to something valid
-rw-r--r--libcrypt/crypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrypt/crypt.c b/libcrypt/crypt.c
index 8399205ca..9819029f2 100644
--- a/libcrypt/crypt.c
+++ b/libcrypt/crypt.c
@@ -26,7 +26,7 @@ char *crypt(const char *key, const char *salt)
return __sha512_crypt(ukey, usalt);
#endif
}
- /* __set_errno(EINVAL);*/ /* ENOSYS might be misleading */
+ __set_errno(EINVAL);
return NULL;
}
return __des_crypt(ukey, usalt);