X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fopenldap.c;h=ffcdb94e8049000961cd19bc65a167387532f9c0;hb=4bca6c6b7e03ab4aa0d6a8a59dda3e44608f63f1;hp=d11855a1e4cda556342568c887e096f638163214;hpb=571337a90afbf3bb7e00937bb64a189b15c2b7cf;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); }