From: Howard Chu Date: Tue, 23 Sep 2003 10:55:57 +0000 (+0000) Subject: Fix alignment issues in hdb_dn2idl_internal X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~670 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d7771374e2ec07a2c26f9f52536a87846ded549d;p=openldap Fix alignment issues in hdb_dn2idl_internal --- diff --git a/servers/slapd/back-bdb/dn2id.c b/servers/slapd/back-bdb/dn2id.c index 0dccf94bd5..8b3f5de64e 100644 --- a/servers/slapd/back-bdb/dn2id.c +++ b/servers/slapd/back-bdb/dn2id.c @@ -995,9 +995,11 @@ hdb_dn2idl_internal( if (j) { EntryInfo *ei2; diskNode *d = (diskNode *)j; + short nrlen; AC_MEMCPY( &ei.bei_id, &d->entryID, sizeof(ID) ); - AC_MEMCPY( &ei.bei_nrdn.bv_len, &d->nrdnlen, sizeof(d->nrdnlen) ); + AC_MEMCPY( &nrlen, &d->nrdnlen, sizeof(d->nrdnlen) ); + ei.bei_nrdn.bv_len = nrlen; /* nrdn/rdn are set in-place. * hdb_cache_load will copy them as needed */