]> git.sur5r.net Git - openldap/commitdiff
Fix uninitialized struct berval* to avoid assert in dnNormalize
authorHoward Chu <hyc@openldap.org>
Mon, 24 Dec 2001 20:12:30 +0000 (20:12 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 24 Dec 2001 20:12:30 +0000 (20:12 +0000)
servers/slapd/back-bdb/modify.c
servers/slapd/back-ldbm/modify.c
servers/slapd/back-monitor/log.c

index 87271e8b06a92d85f78933d57854341376915af0..e4695f968d87f142f5b6ba830be32c704c455a03 100644 (file)
@@ -373,7 +373,7 @@ add_values(
                        int rc;
                        int j;
                        const char *text = NULL;
-                       struct berval *asserted;
+                       struct berval *asserted = NULL;
 
                        rc = value_normalize( mod->sm_desc,
                                SLAP_MR_EQUALITY,
@@ -448,7 +448,7 @@ delete_values(
                int rc;
                const char *text = NULL;
 
-               struct berval *asserted;
+               struct berval *asserted = NULL;
 
                rc = value_normalize( mod->sm_desc,
                        SLAP_MR_EQUALITY,
index 080f2f6659af294c995ebb958a763418d93436bd..7f2bbc76758616ec7e22869557401f215b3f767c 100644 (file)
@@ -374,7 +374,7 @@ add_values(
                        int rc;
                        int j;
                        const char *text = NULL;
-                       struct berval *asserted;
+                       struct berval *asserted = NULL;
 
                        rc = value_normalize( mod->sm_desc,
                                SLAP_MR_EQUALITY,
@@ -460,7 +460,7 @@ delete_values(
                int rc;
                const char *text = NULL;
 
-               struct berval *asserted;
+               struct berval *asserted = NULL;
 
                rc = value_normalize( mod->sm_desc,
                        SLAP_MR_EQUALITY,
index f1e6835392e3307a1d32405c9cb106f86dd80faa..8528da8ca9b5b7eefe3f704638b5f3ec32da4715 100644 (file)
@@ -337,7 +337,7 @@ add_values( Entry *e, Modification *mod, int *newlevel )
                        int rc;
                        int j;
                        const char *text = NULL;
-                       struct berval *asserted;
+                       struct berval *asserted = NULL;
 
                        rc = value_normalize( mod->sm_desc,
                                        SLAP_MR_EQUALITY,
@@ -418,7 +418,7 @@ delete_values( Entry *e, Modification *mod, int *newlevel )
                int rc;
                const char *text = NULL;
 
-               struct berval *asserted;
+               struct berval *asserted = NULL;
 
                rc = value_normalize( mod->sm_desc,
                                SLAP_MR_EQUALITY,