lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1751 - in nss-pam-ldapd-0.7.15+squeeze: . nslcd

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd commit: r1751 - in nss-pam-ldapd-0.7.15+squeeze: . nslcd



Author: arthur
Date: Sat Sep  8 15:08:51 2012
New Revision: 1751
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1751&view=revision

Log:
fix possible NULL pointer dereference (r1589 from 0.8, r1728 from 0.7)

Modified:
   nss-pam-ldapd-0.7.15+squeeze/   (props changed)
   nss-pam-ldapd-0.7.15+squeeze/nslcd/pam.c

Modified: nss-pam-ldapd-0.7.15+squeeze/nslcd/pam.c
==============================================================================
--- nss-pam-ldapd-0.7.15+squeeze/nslcd/pam.c    Sat Sep  8 15:06:33 2012        
(r1750)
+++ nss-pam-ldapd-0.7.15+squeeze/nslcd/pam.c    Sat Sep  8 15:08:51 2012        
(r1751)
@@ -107,8 +107,11 @@
       /* get the username from the uid attribute */
       values=myldap_get_values(entry,attmap_passwd_uid);
       if ((values==NULL)||(values[0]==NULL))
+      {
         log_log(LOG_WARNING,"\"%s\": DN %s is missing a %s attribute",
                             username,userdn,attmap_passwd_uid);
+        return -1;
+      }
       value=values[0];
     }
     /* check the username */
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/