X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fopenldap.c;h=8667058ed049b164d7e496f37917253e55adcf14;hb=0657d95eaa686d64efe6bbccda346ebd6467bd0b;hp=bca686e8aa9dd0ee2703ef748389e3224e64f497;hpb=3c15b0e6fa66db107025ae08d3bbb9824d987a89;p=collectd.git diff --git a/src/openldap.c b/src/openldap.c index bca686e8..8667058e 100644 --- a/src/openldap.c +++ b/src/openldap.c @@ -604,7 +604,8 @@ static int cldap_config_add (oconfig_item_t *ci) /* {{{ */ st->name, st->url); status = -1; } - else + + if ((status == 0) && (ludpp->lud_host != NULL)) { st->host = strdup (ludpp->lud_host); }