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:
parent
544a38824e
commit
818ae965af
@ -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)
|
const char *ldb_errstring(struct ldb_context *ldb)
|
||||||
{
|
{
|
||||||
|
if (ldb->modules == NULL) {
|
||||||
|
return "ldb not connected";
|
||||||
|
}
|
||||||
return ldb->modules->ops->errstring(ldb->modules);
|
return ldb->modules->ops->errstring(ldb->modules);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user