Finish off berbuf fix

This commit is contained in:
Kurt Zeilenga 2003-10-12 06:07:02 +00:00
parent 767cf365ea
commit 71f484bad8

View File

@ -1515,8 +1515,8 @@ send_pagerequest_response(
int tentries ) int tentries )
{ {
LDAPControl ctrl, *ctrls[2]; LDAPControl ctrl, *ctrls[2];
char berbuf[LBER_ELEMENT_SIZEOF]; BerElementBuffer berbuf;
BerElement *ber = (BerElement *)berbuf; BerElement *ber = (BerElement *)&berbuf;
struct berval cookie = { 0, NULL }; struct berval cookie = { 0, NULL };
PagedResultsCookie respcookie; PagedResultsCookie respcookie;
@ -1579,8 +1579,8 @@ bdb_build_sync_state_ctrl(
int res; int res;
const char *text = NULL; const char *text = NULL;
char berbuf[LBER_ELEMENT_SIZEOF]; BerElementBuffer berbuf;
BerElement *ber = (BerElement *)berbuf; BerElement *ber = (BerElement *)&berbuf;
struct berval entryuuid_bv = { 0, NULL }; struct berval entryuuid_bv = { 0, NULL };
@ -1639,8 +1639,8 @@ bdb_build_sync_done_ctrl(
struct berval *csn ) struct berval *csn )
{ {
int ret; int ret;
char berbuf[LBER_ELEMENT_SIZEOF]; BerElementBuffer berbuf;
BerElement *ber = (BerElement *)berbuf; BerElement *ber = (BerElement *)&berbuf;
ber_init2( ber, NULL, LBER_USE_DER ); ber_init2( ber, NULL, LBER_USE_DER );
@ -1682,8 +1682,8 @@ bdb_send_ldap_intermediate(
int state, int state,
struct berval *cookie ) struct berval *cookie )
{ {
char berbuf[LBER_ELEMENT_SIZEOF]; BerElementBuffer berbuf;
BerElement *ber = (BerElement *)berbuf; BerElement *ber = (BerElement *)&berbuf;
struct berval rspdata; struct berval rspdata;
int ret; int ret;