[master] af18af5b7 vmod_debug: fix glitches

Nils Goroll nils.goroll at uplex.de
Mon Feb 10 12:54:09 UTC 2025


commit af18af5b7405852ec39c20af0161050eb604a013
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Mon Feb 10 13:51:23 2025 +0100

    vmod_debug: fix glitches
    
    CID 1642724
    CID 1642723
    
    Ref 4c86b89419142c8c2ae1bdf8399348d1b5272df6

diff --git a/vmod/vmod_debug.c b/vmod/vmod_debug.c
index fd1100451..7b22d87df 100644
--- a/vmod/vmod_debug.c
+++ b/vmod/vmod_debug.c
@@ -1329,7 +1329,7 @@ ptr_where(VRT_CTX, const char *p)
 		WRONG("ctx");
 
 	AN(wrk);
-	aws = ctx->req->wrk->aws;
+	aws = wrk->aws;
 
 	if (WS_Allocated(ws, p, -1))
 		return ("ws");
@@ -1353,7 +1353,7 @@ xyzzy_log_strands(VRT_CTX, VCL_STRING prefix, VCL_STRANDS subject, VCL_INT nn)
 	AN(subject);
 	if (nn > INT_MAX)
 		n = INT_MAX;
-	if (nn < 0)
+	else if (nn < 0)
 		n = 0;
 	else
 		n = nn;


More information about the varnish-commit mailing list