X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fopenldap.c;h=8667058ed049b164d7e496f37917253e55adcf14;hb=26314b8c3fb08e1f0017ee9a6277b7fe370bf2a0;hp=bca686e8aa9dd0ee2703ef748389e3224e64f497;hpb=8aad55ab7d737a97d5927458b2b00885e27cae4d;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); }