From cfbeac457691670f19605641874f32890af83e43 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 17 Mar 2000 01:47:40 +0000 Subject: [PATCH] Missing entry causes slapd to segfault (ITS#482) Fix provided by pturgyan@umich.edu --- servers/slapd/entry.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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]; -- 2.39.5