summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/db/sysdb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/db/sysdb.c b/server/db/sysdb.c
index a87b5c56..10da9750 100644
--- a/server/db/sysdb.c
+++ b/server/db/sysdb.c
@@ -271,7 +271,7 @@ int sysdb_attrs_users_from_str_list(struct sysdb_attrs *attrs,
int ret;
ret = sysdb_attrs_get_el(attrs, attr_name, &el);
- if (!ret) {
+ if (ret) {
return ret;
}
@@ -318,11 +318,11 @@ int sysdb_attrs_users_from_ldb_vals(struct sysdb_attrs *attrs,
int ret;
ret = sysdb_attrs_get_el(attrs, attr_name, &el);
- if (!ret) {
+ if (ret) {
return ret;
}
- vals = talloc_realloc(el, el->values, struct ldb_val,
+ vals = talloc_realloc(attrs->a, el->values, struct ldb_val,
el->num_values + num_values);
if (!vals) {
return ENOMEM;