]> git.sur5r.net Git - openldap/commitdiff
set mod->sm_numvals
authorRalf Haferkamp <ralf@openldap.org>
Wed, 26 Sep 2007 01:59:24 +0000 (01:59 +0000)
committerRalf Haferkamp <ralf@openldap.org>
Wed, 26 Sep 2007 01:59:24 +0000 (01:59 +0000)
servers/slapd/overlays/pcache.c

index 5506c22e3a8d70974ec5b5d8c064ac1ffc40a280..70ef66ac5580ae1216e39db0ccfb35d90f3a82b7 100644 (file)
@@ -1449,6 +1449,7 @@ remove_query_data(
                        mod.sml_type = ad_queryId->ad_cname;
                        mod.sml_values = vals;
                        mod.sml_nvalues = NULL;
+                        mod.sml_numvals = 1;
                        mod.sml_next = NULL;
                        Debug( pcache_debug,
                                "REMOVING TEMP ATTR : TEMPLATE=%s\n",
@@ -3353,6 +3354,7 @@ pcache_db_close(
                mod.sml_type = ad_cachedQueryURL->ad_cname;
                mod.sml_values = vals;
                mod.sml_nvalues = NULL;
+                mod.sml_numvals = 1;
                mod.sml_next = NULL;
                Debug( pcache_debug,
                        "%sSETTING CACHED QUERY URLS\n",