Commit 1b9b5cb0 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Lack of a backend name is no reasonable cause for a panic.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3544 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 59402fee
...@@ -697,9 +697,10 @@ VRT_double_string(const struct sess *sp, double num) ...@@ -697,9 +697,10 @@ VRT_double_string(const struct sess *sp, double num)
const char * const char *
VRT_backend_string(struct sess *sp) VRT_backend_string(struct sess *sp)
{ {
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC); CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
CHECK_OBJ_NOTNULL(sp->director, DIRECTOR_MAGIC); if (sp->director == NULL)
return (sp->director->vcl_name); return (NULL);
return (sp->director->vcl_name);
} }
/*--------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment