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