lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1688 - nss-pam-ldapd/compat

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

nss-pam-ldapd commit: r1688 - nss-pam-ldapd/compat



Author: arthur
Date: Fri May 11 11:28:29 2012
New Revision: 1688
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1688&view=revision

Log:
fix fallback definition of SUN_LEN() (fixes r1686)

Modified:
   nss-pam-ldapd/compat/socket.h

Modified: nss-pam-ldapd/compat/socket.h
==============================================================================
--- nss-pam-ldapd/compat/socket.h       Wed May  9 22:58:22 2012        (r1687)
+++ nss-pam-ldapd/compat/socket.h       Fri May 11 11:28:29 2012        (r1688)
@@ -28,7 +28,7 @@
 
 /* provide a definition for SUN_LEN for systems without it */
 #ifndef SUN_LEN
-#define SUN_LEN(addr) (sizeof((addr).sun_family)+strlen((addr).sun_path)+1)
+#define SUN_LEN(addr) (sizeof((addr)->sun_family)+strlen((addr)->sun_path)+1)
 #endif /* not SUN_LEN */
 
 #endif /* not COMPAT__SOCKET_H */
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/