diff options
author | Björn Baumbach <bb@sernet.de> | 2014-04-14 14:37:29 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-04-16 20:39:08 +0200 |
commit | fae7e5d771d1c69bded1189b23335647023fa0f7 (patch) | |
tree | 7ae416ce7f3d12664b3fa75ac47c1e3a70514986 /source3/lib/interface.c | |
parent | a56c35a4deec9745ff27a66ddc85db48c5dfaf97 (diff) | |
download | samba-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/lib/interface.c')
-rw-r--r-- | source3/lib/interface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/interface.c b/source3/lib/interface.c index 39dc9cb04c2..3edeae5742b 100644 --- a/source3/lib/interface.c +++ b/source3/lib/interface.c @@ -503,10 +503,10 @@ void load_interfaces(void) total_probed = get_interfaces(talloc_tos(), &ifaces); if (total_probed > 0) { - probed_ifaces = (struct iface_struct *)memdup(ifaces, + probed_ifaces = (struct iface_struct *)smb_memdup(ifaces, sizeof(ifaces[0])*total_probed); if (!probed_ifaces) { - DEBUG(0,("ERROR: memdup failed\n")); + DEBUG(0,("ERROR: smb_memdup failed\n")); exit(1); } } |