diff options
author | Jeremy Allison <jra@samba.org> | 2007-09-11 19:27:34 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:30:40 -0500 |
commit | 327ca9167ed28d2207444a93424cadef79d166b5 (patch) | |
tree | 069eb4ef0f7d5add67c9b4b6b0099f53ad01d9a4 /source3/include/smb_macros.h | |
parent | 351eb37a2555ce474ee02758f2f2cfee33d4d434 (diff) | |
download | samba-327ca9167ed28d2207444a93424cadef79d166b5.tar.gz samba-327ca9167ed28d2207444a93424cadef79d166b5.tar.xz samba-327ca9167ed28d2207444a93424cadef79d166b5.zip |
r25103: Ensure we don't return unwritten memory (valgrind caught).
Jeremy.
(This used to be commit b3f0d39d11fa18b7bfef6cec88efaf4a2be2d6e0)
Diffstat (limited to 'source3/include/smb_macros.h')
-rw-r--r-- | source3/include/smb_macros.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/source3/include/smb_macros.h b/source3/include/smb_macros.h index c44f245d2b..d53d6c3418 100644 --- a/source3/include/smb_macros.h +++ b/source3/include/smb_macros.h @@ -270,9 +270,6 @@ copy an IP address from one buffer to another #define SMB_XMALLOC_P(type) (type *)smb_xmalloc_array(sizeof(type),1) #define SMB_XMALLOC_ARRAY(type,count) (type *)smb_xmalloc_array(sizeof(type),(count)) -/* limiting size of ipc replies */ -#define SMB_REALLOC_LIMIT(ptr,size) (char *)SMB_REALLOC(ptr,MAX((size),4*1024)) - /* The new talloc is paranoid malloc checker safe. */ #if 0 |