diff --git a/src/stream.c b/src/stream.c index b19519f84..f45f53511 100644 --- a/src/stream.c +++ b/src/stream.c @@ -1411,7 +1411,7 @@ static int process_store_rules(struct stream *s, struct channel *rep, int an_bit struct dict_entry *de; struct stktable *t = s->store[i].table; - if (objt_server(s->target) && __objt_server(s->target)->flags & SRV_F_NON_STICK) { + if (!objt_server(s->target) || (__objt_server(s->target)->flags & SRV_F_NON_STICK)) { stksess_free(s->store[i].table, s->store[i].ts); s->store[i].ts = NULL; continue;