summaryrefslogtreecommitdiffstats
path: root/source/rpc_parse/parse_buffer.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-04-27 23:18:41 +0000
committerJeremy Allison <jra@samba.org>2007-04-27 23:18:41 +0000
commit04fd9ba97be2034004c20eab00c89099e6883bea (patch)
treed72ebd488852f73cd035da10e2215d243d0fb354 /source/rpc_parse/parse_buffer.c
parent3d32042d58bdb4b9f4e6564ced87efc88478681b (diff)
downloadsamba-04fd9ba97be2034004c20eab00c89099e6883bea.tar.gz
samba-04fd9ba97be2034004c20eab00c89099e6883bea.tar.xz
samba-04fd9ba97be2034004c20eab00c89099e6883bea.zip
r22542: Move over to using the _strict varients of the talloc
calls. No functional changes. Looks bigger than it is :-). Jeremy.
Diffstat (limited to 'source/rpc_parse/parse_buffer.c')
-rw-r--r--source/rpc_parse/parse_buffer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/rpc_parse/parse_buffer.c b/source/rpc_parse/parse_buffer.c
index 5643189afea..b66eb9910a8 100644
--- a/source/rpc_parse/parse_buffer.c
+++ b/source/rpc_parse/parse_buffer.c
@@ -401,6 +401,9 @@ BOOL smb_io_relarraystr(const char *desc, RPC_BUFFER *buffer, int depth, uint16
{
chaine2[l_chaine2] = '\0';
*string=(uint16 *)TALLOC_MEMDUP(prs_get_mem_context(ps),chaine2,realloc_size);
+ if (!*string) {
+ return False;
+ }
SAFE_FREE(chaine2);
}