summaryrefslogtreecommitdiffstats
path: root/source3/smbd
diff options
context:
space:
mode:
authorBjörn Baumbach <bb@sernet.de>2014-04-14 14:37:29 +0200
committerJeremy Allison <jra@samba.org>2014-04-16 20:39:08 +0200
commitfae7e5d771d1c69bded1189b23335647023fa0f7 (patch)
tree7ae416ce7f3d12664b3fa75ac47c1e3a70514986 /source3/smbd
parenta56c35a4deec9745ff27a66ddc85db48c5dfaf97 (diff)
downloadsamba-fae7e5d771d1c69bded1189b23335647023fa0f7.tar.gz
samba-fae7e5d771d1c69bded1189b23335647023fa0f7.tar.xz
samba-fae7e5d771d1c69bded1189b23335647023fa0f7.zip
lib-util: rename memdup to smb_memdup and fix all callers
Signed-off-by: Björn Baumbach <bb@sernet.de> Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/seal.c2
-rw-r--r--source3/smbd/sec_ctx.c4
2 files changed, 3 insertions, 3 deletions
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");
}