Skip to content

Commit

Permalink
vbe: Do not assert in panic code
Browse files Browse the repository at this point in the history
  • Loading branch information
dridi committed May 17, 2024
1 parent 328f3ab commit 7e4442d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/varnishd/cache/cache_backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -474,8 +474,9 @@ vbe_panic(const struct director *d, struct vsb *vsb)
{
struct backend *bp;

CHECK_OBJ_NOTNULL(d, DIRECTOR_MAGIC);
CAST_OBJ_NOTNULL(bp, d->priv, BACKEND_MAGIC);
PAN_CheckMagic(vsb, d, DIRECTOR_MAGIC);
bp = d->priv;
PAN_CheckMagic(vsb, bp, BACKEND_MAGIC);

VCP_Panic(vsb, bp->conn_pool);
VSB_printf(vsb, "hosthdr = %s,\n", bp->hosthdr);
Expand Down

0 comments on commit 7e4442d

Please sign in to comment.