diff options
author | Simo Sorce <idra@samba.org> | 2001-08-08 16:54:16 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2001-08-08 16:54:16 +0000 |
commit | 7f33c01688b825ab2fa9bbb2730bff4f2fa352be (patch) | |
tree | 8a7925dde82fbb21c826141e94b8e94a9777613c /source/lib/sysacls.c | |
parent | 08e99f4c12ad8747a8fd0e47ed4165cea428128d (diff) | |
download | samba-7f33c01688b825ab2fa9bbb2730bff4f2fa352be.tar.gz samba-7f33c01688b825ab2fa9bbb2730bff4f2fa352be.tar.xz samba-7f33c01688b825ab2fa9bbb2730bff4f2fa352be.zip |
Change all realloc() statements to Realloc() (ecxept for tdb.c)
changed some code to exploit the fact that Realloc(NULL, size) == malloc(size)
fixed some possible mem leaks, or seg faults.
thanks to andreas moroder (mallocs not checked in client/client.c, client/smbumount.c)
Diffstat (limited to 'source/lib/sysacls.c')
-rw-r--r-- | source/lib/sysacls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/sysacls.c b/source/lib/sysacls.c index b1347b80e9a..98f0617d44c 100644 --- a/source/lib/sysacls.c +++ b/source/lib/sysacls.c @@ -689,7 +689,7 @@ char *sys_acl_to_text(SMB_ACL_T acl_d, ssize_t *len_p) maxlen += nbytes + 20 * (acl_d->count - i); - if ((text = realloc(oldtext, maxlen)) == NULL) { + if ((text = Realloc(oldtext, maxlen)) == NULL) { free(oldtext); errno = ENOMEM; return NULL; |