svn commit: samba r15362 - in branches/SAMBA_4_0/source/lib: .
jelmer at samba.org
jelmer at samba.org
Sun Apr 30 18:45:44 GMT 2006
Author: jelmer
Date: 2006-04-30 18:45:43 +0000 (Sun, 30 Apr 2006)
New Revision: 15362
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=15362
Log:
Consider anything non-zero a failure, bnio not just -1
Modified:
branches/SAMBA_4_0/source/lib/db_wrap.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/db_wrap.c
===================================================================
--- branches/SAMBA_4_0/source/lib/db_wrap.c 2006-04-30 16:09:00 UTC (rev 15361)
+++ branches/SAMBA_4_0/source/lib/db_wrap.c 2006-04-30 18:45:43 UTC (rev 15362)
@@ -32,6 +32,7 @@
#include "lib/events/events.h"
#include "lib/tdb/include/tdb.h"
#include "lib/ldb/include/ldb.h"
+#include "lib/ldb/include/ldb_errors.h"
#include "lib/ldb/samba/ldif_handlers.h"
#include "db_wrap.h"
@@ -123,7 +124,7 @@
}
ret = ldb_connect(ldb, real_url, flags, options);
- if (ret == -1) {
+ if (ret != LDB_SUCCESS) {
talloc_free(ldb);
return NULL;
}
More information about the samba-cvs
mailing list