summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-01-08 12:54:42 +1100
committerAndrew Tridgell <tridge@samba.org>2010-01-08 13:03:08 +1100
commitdde2b66341d5addbb80a239b8ccab58af1f3fc24 (patch)
treeef464c80a9b3b5c6934849838655e33578a62a96 /source4/dsdb/samdb
parent9aed0993624ecd42ad68b3b080668fa07a9bc1b9 (diff)
downloadsamba-dde2b66341d5addbb80a239b8ccab58af1f3fc24.tar.gz
samba-dde2b66341d5addbb80a239b8ccab58af1f3fc24.tar.bz2
samba-dde2b66341d5addbb80a239b8ccab58af1f3fc24.zip
s4-samba3sid: fixed error returns when res->count != 1 and oom
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/samba3sid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/samba3sid.c b/source4/dsdb/samdb/ldb_modules/samba3sid.c
index bb4b58be3f..76848eb258 100644
--- a/source4/dsdb/samdb/ldb_modules/samba3sid.c
+++ b/source4/dsdb/samdb/ldb_modules/samba3sid.c
@@ -69,7 +69,7 @@ static int samba3sid_next_sid(struct ldb_module *module,
": Expected exactly 1 domain object - got %u",
res->count);
talloc_free(tmp_ctx);
- return ret;
+ return LDB_ERR_OPERATIONS_ERROR;
}
msg = res->msgs[0];
@@ -84,7 +84,7 @@ static int samba3sid_next_sid(struct ldb_module *module,
": No sambaSID in %s",
ldb_dn_get_linearized(msg->dn));
talloc_free(tmp_ctx);
- return ret;
+ return LDB_ERR_OPERATIONS_ERROR;
}
/* choose the highest of the 3 - see pdb_ldap.c for an
@@ -102,7 +102,7 @@ static int samba3sid_next_sid(struct ldb_module *module,
": No sambaNextRid in %s",
ldb_dn_get_linearized(msg->dn));
talloc_free(tmp_ctx);
- return ret;
+ return LDB_ERR_OPERATIONS_ERROR;
}
/* sambaNextRid is actually the previous RID .... */