lists.arthurdejong.org
RSS feed

nss-pam-ldapd branch master updated. 0.9.1-19-g2bd2bc4

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

nss-pam-ldapd branch master updated. 0.9.1-19-g2bd2bc4



This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "nss-pam-ldapd".

The branch, master has been updated
       via  2bd2bc470c824453cd002f151db9d668f609fc10 (commit)
       via  dccc9cf7cbbe3cae606a7761897c9d514b467aeb (commit)
      from  4fc41979a9b0beb6a6bf57429685e2a89300f8b1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://arthurdejong.org/git/nss-pam-ldapd/commit/?id=2bd2bc470c824453cd002f151db9d668f609fc10

commit 2bd2bc470c824453cd002f151db9d668f609fc10
Author: Arthur de Jong <arthur@arthurdejong.org>
Date:   Fri Sep 13 13:31:15 2013 +0200

    Initialise msg to avoid potential NULL pointer dereference
    
    The NULL pointer dereference in the PAM module should not occur due to
    the relationship with the rc value that is handled alongside it. This
    change mostly silences the compiler and protects from future changes.

diff --git a/pam/pam.c b/pam/pam.c
index 5898ae1..2b67c73 100644
--- a/pam/pam.c
+++ b/pam/pam.c
@@ -539,7 +539,7 @@ int pam_sm_acct_mgmt(pam_handle_t *pamh, int flags,
   const char *username, *service;
   const char *ruser = NULL, *rhost = NULL, *tty = NULL;
   struct nslcd_resp authz_resp;
-  const char *msg;
+  const char *msg = NULL;
   /* set up configuration */
   cfg_init(pamh, flags, argc, argv, &cfg);
   rc = init(pamh, &cfg, &ctx, &username, &service, &ruser, &rhost, &tty);

http://arthurdejong.org/git/nss-pam-ldapd/commit/?id=dccc9cf7cbbe3cae606a7761897c9d514b467aeb

commit dccc9cf7cbbe3cae606a7761897c9d514b467aeb
Author: Arthur de Jong <arthur@arthurdejong.org>
Date:   Fri Sep 13 13:30:51 2013 +0200

    Add configure test for {set,get,end}usershell() availability

diff --git a/configure.ac b/configure.ac
index c51c770..08956d3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -344,6 +344,7 @@ AC_CHECK_FUNCS([malloc realloc atexit])
 AC_FUNC_FORK
 AC_CHECK_FUNCS(__assert_fail)
 AC_SEARCH_LIBS(clock_gettime, rt)
+AC_CHECK_FUNCS([setusershell getusershell endusershell])
 
 # checks for types
 AC_TYPE_MODE_T

-----------------------------------------------------------------------

Summary of changes:
 configure.ac |    1 +
 pam/pam.c    |    2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
nss-pam-ldapd
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/