]> granicus.if.org Git - linux-pam/commitdiff
Relevant BUGIDs:
authorThorsten Kukuk <kukuk@thkukuk.de>
Thu, 21 Oct 2010 13:24:31 +0000 (13:24 +0000)
committerThorsten Kukuk <kukuk@thkukuk.de>
Thu, 21 Oct 2010 13:24:31 +0000 (13:24 +0000)
Purpose of commit: bugfix

Commit summary:
---------------

2010-10-21  Thorsten Kukuk  <kukuk@thkukuk.de>

        * modules/pam_unix/support.c (_unix_getpwnam): Don't allocate
        unneeded buffer for uid/gid [sf#3059572].

ChangeLog
modules/pam_unix/support.c

index efd3e6bed4b26eeb6a7c86fa9c4fc57dc8a109d8..cfa1a1ac27e69562a01553bf284e5475ad60c891 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-10-21  Thorsten Kukuk  <kukuk@thkukuk.de>
+
+       * modules/pam_unix/support.c (_unix_getpwnam): Don't allocate
+       unneeded buffer for uid/gid [sf#3059572].
+
 2010-10-20  Thorsten Kukuk  <kukuk@thkukuk.de>
 
        * doc/man/pam_get_authtok.3.xml: Fix xml code.
index 898d1ea5e5f9dff6d9f47415ccc5ef2532d21d69..bddafd4b6b91bcd3e985af147b0b40f91023e83d 100644 (file)
@@ -353,8 +353,6 @@ int _unix_getpwnam(pam_handle_t *pamh, const char *name,
                buflen = sizeof(struct passwd) +
                         strlen(slogin) + 1 +
                         strlen(spasswd) + 1 +
-                        strlen(suid) + 1 +
-                        strlen(sgid) + 1 +
                         strlen(sgecos) + 1 +
                         strlen(shome) + 1 +
                         strlen(sshell) + 1;