summaryrefslogtreecommitdiff
path: root/nsswitch/libwbclient/wbc_sid.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-04-03 13:45:36 +0200
committerVolker Lendecke <vl@samba.org>2010-04-19 14:27:20 +0200
commitdf831df6668dcdf3ccc1681383d085f38f402e9c (patch)
treec845b6f0a02d5b77b08bfb3db5ea000548d94217 /nsswitch/libwbclient/wbc_sid.c
parent460e2d5dada63786cce168b704ea1c005be6db2e (diff)
downloadsamba-df831df6668dcdf3ccc1681383d085f38f402e9c.tar.gz
libwbclient: Make wbcLookupUserSids not use talloc
Diffstat (limited to 'nsswitch/libwbclient/wbc_sid.c')
-rw-r--r--nsswitch/libwbclient/wbc_sid.c7
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;