From e3391c1a4f17d7143b853eee76ff8e18557f3b80 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 20 Dec 2015 14:57:39 +0100 Subject: [PATCH] Prevent possible seg fault --- bacula/src/dird/dird_conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2