summaryrefslogtreecommitdiff
path: root/usr/src/lib/libc/port/gen/crypt.c
diff options
context:
space:
mode:
authorDan McDonald <danmcd@joyent.com>2020-09-22 10:39:49 -0400
committerDan McDonald <danmcd@joyent.com>2020-09-22 10:39:49 -0400
commit267e12a7d9bf6e5fcefb9cc00f46bfff0dc5226e (patch)
tree19a3941920d0039c35d53a5cbee189b5ca51995a /usr/src/lib/libc/port/gen/crypt.c
parent517abc5c668925e6092495bf332233c3599980d2 (diff)
parente9faba760cdf80d7dfa110fe0830917ab94668c2 (diff)
downloadillumos-joyent-vpc.tar.gz
Merge branch 'master' into vpcvpc
Diffstat (limited to 'usr/src/lib/libc/port/gen/crypt.c')
-rw-r--r--usr/src/lib/libc/port/gen/crypt.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/usr/src/lib/libc/port/gen/crypt.c b/usr/src/lib/libc/port/gen/crypt.c
index 5edc9a1deb..812062644f 100644
--- a/usr/src/lib/libc/port/gen/crypt.c
+++ b/usr/src/lib/libc/port/gen/crypt.c
@@ -208,10 +208,10 @@ cleanup:
* either still allowed or not deprecated.
*
* RETURN VALUES
- * Return a pointer to the new salt, the caller is responsible
- * for using free(3c) on the return value.
- * Returns NULL on error and sets errno to one of:
- * EINVAL, ELIBACC, ENOMEM
+ * Return a pointer to the new salt, the caller is responsible
+ * for using free(3c) on the return value.
+ * Returns NULL on error and sets errno to one of:
+ * EINVAL, ELIBACC, ENOMEM
*/
char *
crypt_gensalt(const char *oldsalt, const struct passwd *userinfo)
@@ -570,7 +570,7 @@ getalgbyname(const char *algname, boolean_t *found)
*found = B_TRUE;
}
}
- if (!found) {
+ if (!(*found)) {
errno = EINVAL;
goto cleanup;
}
@@ -731,7 +731,7 @@ free_crypt_policy(struct crypt_policy_s *policy)
/*
* isa_path - prepend the default dir or patch up the $ISA in path
- * Caller is responsible for calling free(3c) on the result.
+ * Caller is responsible for calling free(3c) on the result.
*/
static char *
isa_path(const char *path)
@@ -778,10 +778,10 @@ isa_path(const char *path)
/*ARGSUSED*/
static char *
_unix_crypt_gensalt(char *gsbuffer,
- size_t gsbufflen,
- const char *oldpuresalt,
- const struct passwd *userinfo,
- const char *argv[])
+ size_t gsbufflen,
+ const char *oldpuresalt,
+ const struct passwd *userinfo,
+ const char *argv[])
{
static const char saltchars[] =
"./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
@@ -807,7 +807,7 @@ _unix_crypt_gensalt(char *gsbuffer,
/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
+/* All Rights Reserved */