set LBER_ELEMENT_SIZEOF to 256
maybe this should be set to N*sizeof(size_t) or something
#define LBER_OPT_SUCCESS (0)
#define LBER_OPT_ERROR (-1)
+#define LBER_ELEMENT_SIZEOF (256) /* must be >= sizeof(BerElement) */
typedef struct berelement BerElement;
typedef struct sockbuf Sockbuf;
typedef struct seqorset Seqorset;
int rc = LDAP_SUCCESS;
ber_tag_t tag;
ber_len_t len;
- char berbuf[256];
+ char berbuf[LBER_ELEMENT_SIZEOF];
BerElement *ber = (BerElement *)berbuf;
if( reqdata == NULL ) {
{
int rc;
struct berval *bv = NULL;
- char berbuf[256];
+ char berbuf[LBER_ELEMENT_SIZEOF];
/* opaque structure, size unknown but smaller than berbuf */
BerElement *ber = (BerElement *)berbuf;
LDAPControl **ctrls
)
{
- char berbuf[256];
+ char berbuf[LBER_ELEMENT_SIZEOF];
BerElement *ber = (BerElement *)berbuf;
int rc;
long bytes;
LDAPControl **ctrls
)
{
- char berbuf[256];
+ char berbuf[LBER_ELEMENT_SIZEOF];
BerElement *ber = (BerElement *)berbuf;
Attribute *a, *aa;
int i, j, rc=-1, bytes;
BerVarray *v2refs
)
{
- char berbuf[256];
+ char berbuf[LBER_ELEMENT_SIZEOF];
BerElement *ber = (BerElement *)berbuf;
int rc;
int bytes;