X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fopenldap.c;h=ffcdb94e8049000961cd19bc65a167387532f9c0;hb=08a2128ac248150b50f9c54c9c71f573e54df3c3;hp=d11855a1e4cda556342568c887e096f638163214;hpb=22b1f30eb1bb53e2b6c7fc8d917f222cfc16bae3;p=collectd.git diff --git a/src/openldap.c b/src/openldap.c index d11855a1..ffcdb94e 100644 --- a/src/openldap.c +++ b/src/openldap.c @@ -621,7 +621,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); }