nss-pam-ldapd commit: r1790 - nss-pam-ldapd/nss
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
nss-pam-ldapd commit: r1790 - nss-pam-ldapd/nss
- 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: r1790 - nss-pam-ldapd/nss
- Date: Sat, 13 Oct 2012 23:05:08 +0200 (CEST)
Author: arthur
Date: Sat Oct 13 23:05:07 2012
New Revision: 1790
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1790&view=revision
Log:
on Solaris initialise the output values
Modified:
nss-pam-ldapd/nss/common.h
Modified: nss-pam-ldapd/nss/common.h
==============================================================================
--- nss-pam-ldapd/nss/common.h Sat Oct 13 22:03:52 2012 (r1789)
+++ nss-pam-ldapd/nss/common.h Sat Oct 13 23:05:07 2012 (r1790)
@@ -92,9 +92,22 @@
#ifdef NSS_FLAVOUR_SOLARIS
-/* extra definitions we need (Solaris NSS functions don't pass errno) */
+/* extra definitions we need (Solaris NSS functions don't pass errno)
+ also clear the output values */
+#ifdef HAVE_STRUCT_NSS_XBYY_ARGS_RETURNLEN
#define NSS_EXTRA_DEFS \
- int *errnop=&(errno);
+ int *errnop=&(errno); \
+ NSS_ARGS(args)->returnval=NULL; \
+ NSS_ARGS(args)->returnlen=0; \
+ NSS_ARGS(args)->erange=0; \
+ NSS_ARGS(args)->h_errno=0;
+#else /* not HAVE_STRUCT_NSS_XBYY_ARGS_RETURNLEN */
+#define NSS_EXTRA_DEFS \
+ int *errnop=&(errno); \
+ NSS_ARGS(args)->returnval=NULL; \
+ NSS_ARGS(args)->erange=0; \
+ NSS_ARGS(args)->h_errno=0;
+#endif /* not HAVE_STRUCT_NSS_XBYY_ARGS_RETURNLEN */
/* check validity of passed buffer (Solaris flavour) */
#define NSS_BUFCHECK \
--
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: r1790 - nss-pam-ldapd/nss,
Commits of the nss-pam-ldapd project