]> git.sur5r.net Git - openldap/commitdiff
plug leak when ARG_OFFSET and ARG_BERVAL (ITS#6634)
authorPierangelo Masarati <ando@openldap.org>
Sun, 29 Aug 2010 16:28:16 +0000 (16:28 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sun, 29 Aug 2010 16:28:16 +0000 (16:28 +0000)
servers/slapd/config.c

index 63754a404685f94f389a9c704693a66e436fa7bf..5ab500325c633a21a6e11c41cade4c8453f2e46d 100644 (file)
@@ -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;
                }