summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorTomas Mraz <tm@t8m.info>2005-11-02 09:40:41 +0000
committerTomas Mraz <tm@t8m.info>2005-11-02 09:40:41 +0000
commit1f36364bf4be1aec03df54b67444b5c3eab18a0d (patch)
tree44cc5933d35fc5cf8ad863e3f9716b2861046323 /modules
parent2946300d5e92604f39d0d0177c7d26e4ed6f09d8 (diff)
Relevant BUGIDs: 1224807
Purpose of commit: bugfix Commit summary: --------------- Fix a typo - strlen of a wrong variable.
Diffstat (limited to 'modules')
-rw-r--r--modules/pam_unix/support.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pam_unix/support.c b/modules/pam_unix/support.c
index 38a5d88b..ad949aab 100644
--- a/modules/pam_unix/support.c
+++ b/modules/pam_unix/support.c
@@ -332,7 +332,7 @@ int _unix_getpwnam(pam_handle_t *pamh, const char *name,
memset(*ret, '\0', buflen);
(*ret)->pw_uid = strtol(suid, &p, 10);
- if ((strlen(sgid) == 0) || (*p != '\0')) {
+ if ((strlen(suid) == 0) || (*p != '\0')) {
free(*ret);
*ret = NULL;
return matched;