From 1f36364bf4be1aec03df54b67444b5c3eab18a0d Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Wed, 2 Nov 2005 09:40:41 +0000 Subject: Relevant BUGIDs: 1224807 Purpose of commit: bugfix Commit summary: --------------- Fix a typo - strlen of a wrong variable. --- modules/pam_unix/support.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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; -- cgit v1.2.3