From: Kurt Zeilenga Date: Tue, 12 Feb 2002 19:18:39 +0000 (+0000) Subject: Fix pointer initialization bug X-Git-Tag: OPENLDAP_REL_ENG_2_1_BP~33 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d88f1757efb11cbbd989f1158a162e65cc21b5a8;p=openldap Fix pointer initialization bug --- diff --git a/servers/slapd/modify.c b/servers/slapd/modify.c index 5c67446443..62a6a6da30 100644 --- a/servers/slapd/modify.c +++ b/servers/slapd/modify.c @@ -117,9 +117,11 @@ do_modify( } mod = (Modifications *) ch_malloc( sizeof(Modifications) ); + mod->sml_op = mop; mod->sml_type = tmp.sml_type; mod->sml_bvalues = tmp.sml_bvalues; mod->sml_desc = NULL; + mod->sml_next =NULL; *modtail = mod; switch( mop ) { @@ -166,7 +168,6 @@ do_modify( } } - mod->sml_op = mop; modtail = &mod->sml_next; } *modtail = NULL;