]> granicus.if.org Git - linux-pam/commitdiff
Relevant BUGIDs: 1224807
authorTomas Mraz <tm@t8m.info>
Wed, 2 Nov 2005 09:40:41 +0000 (09:40 +0000)
committerTomas Mraz <tm@t8m.info>
Wed, 2 Nov 2005 09:40:41 +0000 (09:40 +0000)
Purpose of commit: bugfix

Commit summary:
---------------
Fix a typo - strlen of a wrong variable.

ChangeLog
modules/pam_unix/support.c

index a5fd6d5627dffd346018504e07b2c2112f49493a..43c91c0c4f42fb6344c160380d6a1758af952135 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-11-02  Tomas Mraz <t8m@centrum.cz>
+
+       * modules/pam_unix/support.c (_unix_getpwnam): Fix typo [#1224807].
+
 2005-10-31  Thorsten Kukuk  <kukuk@suse.de>
 
        * modules/pam_filter/pam_filter.c: Use XCASE only if defined
index 38a5d88b96a777413d05fa058f84c7239312dc2b..ad949aab91136f850b4e04c2e927c017d41eb8b6 100644 (file)
@@ -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;