]> git.sur5r.net Git - bacula/bacula/commitdiff
Prevent possible seg fault
authorKern Sibbald <kern@sibbald.com>
Sun, 20 Dec 2015 13:57:39 +0000 (14:57 +0100)
committerKern Sibbald <kern@sibbald.com>
Sun, 20 Dec 2015 13:57:39 +0000 (14:57 +0100)
bacula/src/dird/dird_conf.c

index 5bdb2a6f2cbf5d02888e2618fd676a3c09192a3a..23cd6cbe4313bfb661f911a9e91981d3c15cbacf 100644 (file)
@@ -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;