diff options
author | Simo Sorce <ssorce@redhat.com> | 2009-10-24 12:26:39 -0400 |
---|---|---|
committer | Simo Sorce <simo@metason.pico.li.ssimo.org> | 2009-10-26 10:24:10 -0400 |
commit | b9ee942e471306596d3f34c69d30d29dbe30d855 (patch) | |
tree | 0f3f8bb60b56860cd472a2ffe4f073d358d5c309 /server | |
parent | 5813090abca8013563112813a341a77a87466233 (diff) | |
download | sssd-b9ee942e471306596d3f34c69d30d29dbe30d855.tar.gz sssd-b9ee942e471306596d3f34c69d30d29dbe30d855.tar.xz sssd-b9ee942e471306596d3f34c69d30d29dbe30d855.zip |
Read the right buffer, avoids potential segfaults
Also fix some debug message levels
Diffstat (limited to 'server')
-rw-r--r-- | server/db/sysdb_ops.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server/db/sysdb_ops.c b/server/db/sysdb_ops.c index 3d3f8e7e2..e045ad7ea 100644 --- a/server/db/sysdb_ops.c +++ b/server/db/sysdb_ops.c @@ -2865,7 +2865,7 @@ static void sysdb_store_group_check(struct tevent_req *subreq) state->member_users[i], state->domain->name); if (!member) { - DEBUG(6, ("Error: Out of memory\n")); + DEBUG(4, ("Error: Out of memory\n")); tevent_req_error(req, ENOMEM); return; } @@ -2875,7 +2875,7 @@ static void sysdb_store_group_check(struct tevent_req *subreq) ret = sysdb_attrs_steal_string(state->attrs, SYSDB_MEMBER, member); if (ret) { - DEBUG(6, ("Error: %d (%s)\n", ret, strerror(ret))); + DEBUG(4, ("Error: %d (%s)\n", ret, strerror(ret))); tevent_req_error(req, ret); return; } @@ -2885,10 +2885,10 @@ static void sysdb_store_group_check(struct tevent_req *subreq) char *member; member = talloc_asprintf(state, SYSDB_TMPL_GROUP, - state->member_users[i], + state->member_groups[i], state->domain->name); if (!member) { - DEBUG(6, ("Error: Out of memory\n")); + DEBUG(4, ("Error: Out of memory\n")); tevent_req_error(req, ENOMEM); return; } @@ -2898,7 +2898,7 @@ static void sysdb_store_group_check(struct tevent_req *subreq) ret = sysdb_attrs_steal_string(state->attrs, SYSDB_MEMBER, member); if (ret) { - DEBUG(6, ("Error: %d (%s)\n", ret, strerror(ret))); + DEBUG(4, ("Error: %d (%s)\n", ret, strerror(ret))); tevent_req_error(req, ret); return; } |