1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-29 11:21:54 +03:00

r7759: allow ldb_errstring() to be used when not connected

This commit is contained in:
Andrew Tridgell 2005-06-19 13:29:07 +00:00 committed by Gerald (Jerry) Carter
parent 544a38824e
commit 818ae965af

View File

@ -172,6 +172,9 @@ int ldb_rename(struct ldb_context *ldb, const char *olddn, const char *newdn)
*/
const char *ldb_errstring(struct ldb_context *ldb)
{
if (ldb->modules == NULL) {
return "ldb not connected";
}
return ldb->modules->ops->errstring(ldb->modules);
}