diff --git a/src/proto_http.c b/src/proto_http.c index 883453228..054c6ac14 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -6907,7 +6907,7 @@ void manage_server_side_cookies(struct session *t, struct buffer *res) txn->flags &= ~TX_SCK_MASK; txn->flags |= TX_SCK_REPLACED; } - else if (srv && srv && (t->be->ck_opts & PR_CK_PFX)) { + else if (srv && srv->cookie && (t->be->ck_opts & PR_CK_PFX)) { /* insert the cookie name associated with this server * before existing cookie, and insert a delimiter between them.. */