lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1559 - nss-pam-ldapd-0.7/nslcd

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

nss-pam-ldapd commit: r1559 - nss-pam-ldapd-0.7/nslcd



Author: arthur
Date: Thu Dec  8 22:34:30 2011
New Revision: 1559
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1559&view=revision

Log:
properly ensure that uid, gid and pid vars are properly initialised (part of 
r1558 from trunk)

Modified:
   nss-pam-ldapd-0.7/nslcd/nslcd.c

Modified: nss-pam-ldapd-0.7/nslcd/nslcd.c
==============================================================================
--- nss-pam-ldapd-0.7/nslcd/nslcd.c     Thu Dec  1 22:43:24 2011        (r1558)
+++ nss-pam-ldapd-0.7/nslcd/nslcd.c     Thu Dec  8 22:34:30 2011        (r1559)
@@ -357,9 +357,9 @@
   TFILE *fp;
   int32_t action;
   struct timeval readtimeout,writetimeout;
-  uid_t uid;
-  gid_t gid;
-  pid_t pid;
+  uid_t uid=(uid_t)-1;
+  gid_t gid=(gid_t)-1;
+  pid_t pid=(pid_t)-1;
   /* indicate new connection to logging module (genrates unique id) */
   log_newsession();
   /* log connection */
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/