From: Kurt Zeilenga Date: Fri, 17 Mar 2000 01:47:40 +0000 (+0000) Subject: Missing entry causes slapd to segfault (ITS#482) X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~3137 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cfbeac457691670f19605641874f32890af83e43;p=openldap Missing entry causes slapd to segfault (ITS#482) Fix provided by pturgyan@umich.edu --- diff --git a/servers/slapd/entry.c b/servers/slapd/entry.c index 8fb1680c00..ab8bbb013f 100644 --- a/servers/slapd/entry.c +++ b/servers/slapd/entry.c @@ -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];