]> err.no Git - varnish/commit
Solaris fix for VRT_error
authortfheen <tfheen@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 2 Mar 2009 09:49:15 +0000 (09:49 +0000)
committertfheen <tfheen@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 2 Mar 2009 09:49:15 +0000 (09:49 +0000)
commit027541c51af4670f57cb0702bda74fe8752cc66e
treebb4358ce988e98f0778f5a671b1a0f97ea9f3cf6
parent63e9ed7687770b8e739f8d1a7f4369a233396ba8
Solaris fix for VRT_error

If VRT_error is called with reason==NULL, WSL() will eventually call
strlen(0), which will cause a SIGSEGV on (Open)Solaris.  Fix this by
checking if the reason is empty and just use (null) in that case.

Fixes: 458
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3847 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/bin/varnishd/cache_vrt.c