]> git.sur5r.net Git - openldap/commitdiff
Missing entry causes slapd to segfault (ITS#482)
authorKurt Zeilenga <kurt@openldap.org>
Fri, 17 Mar 2000 01:47:40 +0000 (01:47 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 17 Mar 2000 01:47:40 +0000 (01:47 +0000)
Fix provided by pturgyan@umich.edu

servers/slapd/entry.c

index 8fb1680c003479f7255eef1d04b5ead799f240ab..ab8bbb013feafa995355d4b9d34b89af08e86c56 100644 (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];