• Nils Goroll's avatar
    Avoid panic with PRIV_TOP arguments · d0db4c97
    Nils Goroll authored
    Instead of triggering a WRONG() panic, we now fail the VCL when any vmod
    function with PRIV_TOP argument(s) is present in a sub called from
    outside client context.
    
    Note that the VCL failure happens not when the vmod function with the
    PRIV_TOP argument is called, but rather when the containing SUB is
    called. This is because we prepare PRIV_TOP arguments in the function
    preamble.
    
    Fixes #3498
    d0db4c97
v00043.vtc 2.66 KB