]> git.sur5r.net Git - openldap/commitdiff
fix zeroing out attribute values (should fix ITS#5311)
authorPierangelo Masarati <ando@openldap.org>
Tue, 8 Jan 2008 14:58:24 +0000 (14:58 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 8 Jan 2008 14:58:24 +0000 (14:58 +0000)
servers/slapd/back-monitor/thread.c

index 4c90f0521071cc7bf0fb04b674ce9feb8bd483af..5fdbd071e9aa57ac6a148fa9888fe60a186b21d0 100644 (file)
@@ -260,6 +260,7 @@ monitor_subsys_thread_update(
                                ber_bvarray_free( a->a_vals );
                                a->a_vals = NULL;
                                a->a_nvals = NULL;
+                               a->a_numvals = 0;
                        }
 
                        i = 0;
@@ -292,6 +293,7 @@ monitor_subsys_thread_update(
                                ber_bvarray_free( a->a_vals );
                                a->a_vals = NULL;
                                a->a_nvals = NULL;
+                               a->a_numvals = 0;
                        }
        
                        i = 0;