• Nils Goroll's avatar
    fix the appnd() macro - it needs a block · 4dcf6aa8
    Nils Goroll authored
    when called below in
    
    	if (ua_prepend[i])
    		appnd(w, space, ua_prepend[i], l);
    
    appnd would exand such that only the first line (l = strlen(r))
    was conditional on ua_prepend[i] being non-null, which then would
    trigger a null pointer dereference in strncpy.
    
    This is a particularly embarassing bug.
    4dcf6aa8
dcs_varnish.c 4.53 KB