summaryrefslogtreecommitdiff
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
parent460e2d5dada63786cce168b704ea1c005be6db2e (diff)
downloadsamba-df831df6668dcdf3ccc1681383d085f38f402e9c.tar.gz
samba-df831df6668dcdf3ccc1681383d085f38f402e9c.tar.bz2
samba-df831df6668dcdf3ccc1681383d085f38f402e9c.zip
libwbclient: Make wbcLookupUserSids not use talloc
-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 5a003b1f88..2130077cd9 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;