From 24e14748aaf1804d9ad9a982e1c75c18ad8278ea Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Fri, 24 Jan 2003 11:09:20 +0000 Subject: [PATCH] Fix memory smasher in slapi_x_modifications2ldapmods() --- servers/slapd/slapi/slapi_utils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/servers/slapd/slapi/slapi_utils.c b/servers/slapd/slapi/slapi_utils.c index 73e34e29be..9cfe1ec9a5 100644 --- a/servers/slapd/slapi/slapi_utils.c +++ b/servers/slapd/slapi/slapi_utils.c @@ -2492,6 +2492,7 @@ LDAPMod **slapi_x_modifications2ldapmods(Modifications **pmodlist) mods = (LDAPMod **)ch_malloc( (i + 1) * sizeof(LDAPMod *) ); for( i = 0, ml = modlist; ml != NULL; ml = ml->sml_next ) { + mods[i] = (LDAPMod *)ch_malloc( sizeof(LDAPMod) ); modp = mods[i]; modp->mod_op = ml->sml_op | LDAP_MOD_BVALUES; -- 2.39.5