[master] c13c71f80 Fix pan_top() expected magic

Nils Goroll nils.goroll at uplex.de
Sat Jan 23 13:44:07 UTC 2021


commit c13c71f8065659a51fb364bb95153e7cee8abd03
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Sat Jan 23 14:26:53 2021 +0100

    Fix pan_top() expected magic
    
    A copy-pasta in 55dffc3585685f2a67e3228094aea9ca9d986798 prevented the
    top request from being dumped.

diff --git a/bin/varnishd/cache/cache_panic.c b/bin/varnishd/cache/cache_panic.c
index 91268deaa..954d2949b 100644
--- a/bin/varnishd/cache/cache_panic.c
+++ b/bin/varnishd/cache/cache_panic.c
@@ -411,7 +411,7 @@ pan_busyobj(struct vsb *vsb, const struct busyobj *bo)
 static void
 pan_top(struct vsb *vsb, const struct reqtop *top)
 {
-	if (PAN_dump_struct(vsb, top, REQ_MAGIC, "top"))
+	if (PAN_dump_struct(vsb, top, REQTOP_MAGIC, "top"))
 		return;
 	pan_req(vsb, top->topreq);
 	pan_privs(vsb, top->privs);


More information about the varnish-commit mailing list