From: Kern Sibbald Date: Sun, 20 Dec 2015 13:57:39 +0000 (+0100) Subject: Prevent possible seg fault X-Git-Tag: Release-7.4.0~96 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e3391c1a4f17d7143b853eee76ff8e18557f3b80;p=bacula%2Fbacula Prevent possible seg fault --- diff --git a/bacula/src/dird/dird_conf.c b/bacula/src/dird/dird_conf.c index 5bdb2a6f2c..23cd6cbe43 100644 --- a/bacula/src/dird/dird_conf.c +++ b/bacula/src/dird/dird_conf.c @@ -2132,7 +2132,7 @@ extern "C" char *job_code_callback_director(JCR *jcr, const char* param) } break; case 'h': - if (jcr->client) { + if (jcr->client && jcr->client->address) { return jcr->client->address; } break;