Commit b1d32508 authored by Nils Goroll's avatar Nils Goroll

ensure the stats got initialized

parent 7b68f637
......@@ -48,7 +48,7 @@
/* shared with vmod code */
struct lock stats_lock;
struct VSC_pesi *stats;
struct VSC_pesi *stats = NULL;
/* ------------------------------------------------------------
* pesi tasks
......@@ -123,6 +123,7 @@ pesi_destroy(struct pesi **pesip)
if (pesi->no_thread != 0) {
Lck_Lock(&stats_lock);
AN(stats);
stats->no_thread += pesi->no_thread;
Lck_Unlock(&stats_lock);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment