nss-pam-ldapd commit: r1267 - nss-pam-ldapd/nslcd
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
nss-pam-ldapd commit: r1267 - nss-pam-ldapd/nslcd
- From: Commits of the nss-pam-ldapd project <nss-pam-ldapd-commits [at] lists.arthurdejong.org>
- To: nss-pam-ldapd-commits [at] lists.arthurdejong.org
- Reply-to: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: nss-pam-ldapd commit: r1267 - nss-pam-ldapd/nslcd
- Date: Wed, 13 Oct 2010 21:58:49 +0200 (CEST)
Author: arthur
Date: Wed Oct 13 21:58:47 2010
New Revision: 1267
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?view=rev&revision=1267
Log:
make buffer sizes for PAM requests consistent (and large enough for most
situations)
Modified:
nss-pam-ldapd/nslcd/pam.c
Modified: nss-pam-ldapd/nslcd/pam.c
==============================================================================
--- nss-pam-ldapd/nslcd/pam.c Wed Oct 13 21:42:32 2010 (r1266)
+++ nss-pam-ldapd/nslcd/pam.c Wed Oct 13 21:58:47 2010 (r1267)
@@ -284,9 +284,7 @@
char username[256];
char userdn[256];
char servicename[64];
- char ruser[32];
- char rhost[256];
- char tty[256];
+ char ruser[256],rhost[HOST_NAME_MAX+1],tty[64];
char hostname[HOST_NAME_MAX+1];
DICT *dict;
/* read request parameters */
@@ -350,7 +348,7 @@
char username[256];
char userdn[256];
char servicename[64];
- char tty[64],rhost[64],ruser[256];
+ char tty[64],rhost[HOST_NAME_MAX+1],ruser[256];
int32_t sessionid;
/* read request parameters */
READ_STRING(fp,username);
@@ -379,7 +377,7 @@
char username[256];
char userdn[256];
char servicename[64];
- char tty[64],rhost[64],ruser[256];
+ char tty[64],rhost[HOST_NAME_MAX+1],ruser[256];
int32_t sessionid;
/* read request parameters */
READ_STRING(fp,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
- nss-pam-ldapd commit: r1267 - nss-pam-ldapd/nslcd,
Commits of the nss-pam-ldapd project