From fae7e5d771d1c69bded1189b23335647023fa0f7 Mon Sep 17 00:00:00 2001 From: Björn Baumbach Date: Mon, 14 Apr 2014 14:37:29 +0200 Subject: lib-util: rename memdup to smb_memdup and fix all callers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Björn Baumbach Reviewed-by: Volker Lendecke --- source3/smbd/seal.c | 2 +- source3/smbd/sec_ctx.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/smbd') diff --git a/source3/smbd/seal.c b/source3/smbd/seal.c index bb9bb083503..273013b4279 100644 --- a/source3/smbd/seal.c +++ b/source3/smbd/seal.c @@ -245,7 +245,7 @@ NTSTATUS srv_request_encryption_setup(connection_struct *conn, /* Return the raw blob. */ SAFE_FREE(*ppdata); - *ppdata = (unsigned char *)memdup(response.data, response.length); + *ppdata = (unsigned char *)smb_memdup(response.data, response.length); if ((*ppdata) == NULL && response.length > 0) return NT_STATUS_NO_MEMORY; *p_data_size = response.length; diff --git a/source3/smbd/sec_ctx.c b/source3/smbd/sec_ctx.c index d474219eba2..c34247e615a 100644 --- a/source3/smbd/sec_ctx.c +++ b/source3/smbd/sec_ctx.c @@ -331,8 +331,8 @@ void set_sec_ctx(uid_t uid, gid_t gid, int ngroups, gid_t *groups, const struct TALLOC_FREE(ctx_p->token); if (ngroups) { - ctx_p->ut.groups = (gid_t *)memdup(groups, - sizeof(gid_t) * ngroups); + ctx_p->ut.groups = (gid_t *)smb_memdup(groups, + sizeof(gid_t) * ngroups); if (!ctx_p->ut.groups) { smb_panic("memdup failed"); } -- cgit