• Dridi Boukelmoune's avatar
    std.ip: Always provide some form of fallback · 3cd55a65
    Dridi Boukelmoune authored
    Otherwise valid code can panic on workspace exhaustion:
    
        std.ip(req.http.X-Real-IP, std.ip(req.http.X-Client-IP, client.ip))
    
    If the nested std.ip() call runs out of workspace, it will return a null
    ip instead of the fallback, and the outer std.ip() call will panic upon
    checking the suckaddr sanity.
    
    Refs #3746
    3cd55a65
Name
Last commit
Last update
..
Makefile.am Loading commit data...
automake_boilerplate.am Loading commit data...
flint.lnt Loading commit data...
flint.sh Loading commit data...
vmod.vcc Loading commit data...
vmod_std.c Loading commit data...
vmod_std_conversions.c Loading commit data...
vmod_std_fileread.c Loading commit data...
vmod_std_querysort.c Loading commit data...