From: Howard Chu Date: Mon, 24 Dec 2001 20:12:30 +0000 (+0000) Subject: Fix uninitialized struct berval* to avoid assert in dnNormalize X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~531 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a61b777cdce8cdcbbd20ac75eee58d8d3291010c;p=openldap Fix uninitialized struct berval* to avoid assert in dnNormalize --- diff --git a/servers/slapd/back-bdb/modify.c b/servers/slapd/back-bdb/modify.c index 87271e8b06..e4695f968d 100644 --- a/servers/slapd/back-bdb/modify.c +++ b/servers/slapd/back-bdb/modify.c @@ -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, diff --git a/servers/slapd/back-ldbm/modify.c b/servers/slapd/back-ldbm/modify.c index 080f2f6659..7f2bbc7675 100644 --- a/servers/slapd/back-ldbm/modify.c +++ b/servers/slapd/back-ldbm/modify.c @@ -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, diff --git a/servers/slapd/back-monitor/log.c b/servers/slapd/back-monitor/log.c index f1e6835392..8528da8ca9 100644 --- a/servers/slapd/back-monitor/log.c +++ b/servers/slapd/back-monitor/log.c @@ -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,