Missing entry causes slapd to segfault (ITS#482)

Fix provided by pturgyan@umich.edu
This commit is contained in:
Kurt Zeilenga 2000-03-17 01:47:40 +00:00
parent f28e0c1967
commit cfbeac4576

View file

@ -33,12 +33,13 @@ Entry *
str2entry( char *s )
{
Entry *e;
Attribute **a;
Attribute **a = NULL;
char *type;
char *value;
char *next;
ber_len_t vlen;
int nvals, maxvals;
int nvals = 0;
int maxvals = 0;
struct berval bval;
struct berval *vals[2];
char ptype[64];