diff options
author | Jeremy Allison <jra@samba.org> | 2007-04-27 23:18:41 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-04-27 23:18:41 +0000 |
commit | 04fd9ba97be2034004c20eab00c89099e6883bea (patch) | |
tree | d72ebd488852f73cd035da10e2215d243d0fb354 /source/rpc_parse/parse_buffer.c | |
parent | 3d32042d58bdb4b9f4e6564ced87efc88478681b (diff) | |
download | samba-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.c | 3 |
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); } |