diff --git a/src/openldap.c b/src/openldap.c
index bca686e8aa9dd0ee2703ef748389e3224e64f497..8667058ed049b164d7e496f37917253e55adcf14 100644 (file)
--- a/src/openldap.c
+++ b/src/openldap.c
st->name, st->url);
status = -1;
}
- else
+
+ if ((status == 0) && (ludpp->lud_host != NULL))
{
st->host = strdup (ludpp->lud_host);
}