nss-pam-ldapd commit: r1769 - nss-pam-ldapd/nslcd
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
nss-pam-ldapd commit: r1769 - 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: r1769 - nss-pam-ldapd/nslcd
- Date: Sun, 16 Sep 2012 17:47:38 +0200 (CEST)
Author: arthur
Date: Sun Sep 16 17:47:37 2012
New Revision: 1769
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1769&view=revision
Log:
swap values and buf assignment to avoice compiler alignment warnings
Modified:
nss-pam-ldapd/nslcd/myldap.c
Modified: nss-pam-ldapd/nslcd/myldap.c
==============================================================================
--- nss-pam-ldapd/nslcd/myldap.c Sat Sep 15 20:18:49 2012 (r1768)
+++ nss-pam-ldapd/nslcd/myldap.c Sun Sep 16 17:47:37 2012 (r1769)
@@ -1566,14 +1566,14 @@
for (i=0;i<num_values;i++)
sz+=bvalues[i]->bv_len+1;
/* allocate the needed memory */
- buf=(char *)malloc(sz);
- if (buf==NULL)
+ values=(char **)malloc(sz);
+ if (values==NULL)
{
log_log(LOG_CRIT,"myldap_get_values_len(): malloc() failed to allocate
memory");
ldap_value_free_len(bvalues);
return NULL;
}
- values=(char **)buf;
+ buf=(char *)values;
buf+=(num_values+1)*sizeof(char *);
/* copy from bvalues */
for (i=0;i<num_values;i++)
--
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: r1769 - nss-pam-ldapd/nslcd,
Commits of the nss-pam-ldapd project