diff --git a/src/openldap.c b/src/openldap.c
index d11855a1e4cda556342568c887e096f638163214..ffcdb94e8049000961cd19bc65a167387532f9c0 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);
}