From 0b68a27050ffbe8ce115d644fc572860b51b3707 Mon Sep 17 00:00:00 2001 From: Marek Becka Date: Thu, 11 Jun 2015 13:52:41 -0400 Subject: [PATCH] fix openldap segfatult when ldapi is used --- src/openldap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.30.2