diff options
author | Volker Lendecke <vl@samba.org> | 2010-04-03 13:45:36 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-04-19 14:27:20 +0200 |
commit | df831df6668dcdf3ccc1681383d085f38f402e9c (patch) | |
tree | c845b6f0a02d5b77b08bfb3db5ea000548d94217 /nsswitch/libwbclient/wbc_sid.c | |
parent | 460e2d5dada63786cce168b704ea1c005be6db2e (diff) | |
download | samba-df831df6668dcdf3ccc1681383d085f38f402e9c.tar.gz |
libwbclient: Make wbcLookupUserSids not use talloc
Diffstat (limited to 'nsswitch/libwbclient/wbc_sid.c')
-rw-r--r-- | nsswitch/libwbclient/wbc_sid.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nsswitch/libwbclient/wbc_sid.c b/nsswitch/libwbclient/wbc_sid.c index 5a003b1f884..2130077cd93 100644 --- a/nsswitch/libwbclient/wbc_sid.c +++ b/nsswitch/libwbclient/wbc_sid.c @@ -444,8 +444,9 @@ wbcErr wbcLookupUserSids(const struct wbcDomainSid *user_sid, BAIL_ON_WBC_ERROR(wbc_status); } - sids = talloc_array(NULL, struct wbcDomainSid, - response.data.num_entries); + sids = (struct wbcDomainSid *)wbcAllocateMemory( + response.data.num_entries, sizeof(struct wbcDomainSid), + NULL); BAIL_ON_PTR_ERROR(sids, wbc_status); s = (const char *)response.extra_data.data; @@ -467,7 +468,7 @@ wbcErr wbcLookupUserSids(const struct wbcDomainSid *user_sid, done: winbindd_free_response(&response); if (sids) { - talloc_free(sids); + wbcFreeMemory(sids); } return wbc_status; |