From: Marek Becka Date: Thu, 11 Jun 2015 17:52:41 +0000 (-0400) Subject: fix openldap segfatult when ldapi is used X-Git-Tag: collectd-5.5.1~108 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=0b68a27050ffbe8ce115d644fc572860b51b3707;p=collectd.git fix openldap segfatult when ldapi is used --- diff --git a/src/openldap.c b/src/openldap.c index bca686e8..e6888499 100644 --- a/src/openldap.c +++ b/src/openldap.c @@ -604,7 +604,7 @@ static int cldap_config_add (oconfig_item_t *ci) /* {{{ */ st->name, st->url); status = -1; } - else + else if (ludpp->lud_host != NULL) { st->host = strdup (ludpp->lud_host); }