X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fopenldap.c;h=e68884996776780aa5d4e0ea4a3b76a37d39082d;hb=0b68a27050ffbe8ce115d644fc572860b51b3707;hp=bca686e8aa9dd0ee2703ef748389e3224e64f497;hpb=cf33da9ad00ac94931a2c87563f8d007a996f1ad;p=collectd.git 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); }