diff --git a/src/stick_table.c b/src/stick_table.c index 7026fe656..8f0392c41 100644 --- a/src/stick_table.c +++ b/src/stick_table.c @@ -173,7 +173,7 @@ struct stksess *stksess_new(struct stktable *t, struct stktable_key *key) ts = pool_alloc2(t->pool); if (ts) { t->current++; - ts += t->data_size; + ts = (void *)ts + t->data_size; stksess_init(t, ts); if (key) stksess_setkey(t, ts, key);