From: Pierangelo Masarati Date: Sun, 29 Aug 2010 16:28:16 +0000 (+0000) Subject: plug leak when ARG_OFFSET and ARG_BERVAL (ITS#6634) X-Git-Tag: MIGRATION_CVS2GIT~502 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8be2af29bbbd70f361597043d12ffee9c3f90094;p=openldap plug leak when ARG_OFFSET and ARG_BERVAL (ITS#6634) --- diff --git a/servers/slapd/config.c b/servers/slapd/config.c index 63754a4046..5ab500325c 100644 --- a/servers/slapd/config.c +++ b/servers/slapd/config.c @@ -467,7 +467,7 @@ config_get_vals(ConfigTable *cf, ConfigArgs *c) c->value_string = ch_strdup(*(char **)ptr); break; case ARG_BERVAL: - ber_dupbv( &c->value_bv, (struct berval *)ptr ); break; + c->value_bv = *((struct berval *)ptr); break; case ARG_ATDESC: c->value_ad = *(AttributeDescription **)ptr; break; }