diff options
author | Jeremy Allison <jra@samba.org> | 2006-03-29 23:25:04 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:15:48 -0500 |
commit | 0b1e1ed7223b4ed900b6ee738b2f71a0473ac718 (patch) | |
tree | 0e5d1d71cb934e74b5ca2445828c1383e636e43c /source3 | |
parent | d0c0079ef87600ef32964da3483255fb57b717db (diff) | |
download | samba-0b1e1ed7223b4ed900b6ee738b2f71a0473ac718.tar.gz samba-0b1e1ed7223b4ed900b6ee738b2f71a0473ac718.tar.bz2 samba-0b1e1ed7223b4ed900b6ee738b2f71a0473ac718.zip |
r14782: Fix coverity bug #273, null deref.
Jeremy.
(This used to be commit c2636c10262e8045f701143dee22b10b2d0c0344)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_client/cli_echo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/rpc_client/cli_echo.c b/source3/rpc_client/cli_echo.c index 89de6cec94..9818fad79b 100644 --- a/source3/rpc_client/cli_echo.c +++ b/source3/rpc_client/cli_echo.c @@ -79,6 +79,9 @@ NTSTATUS rpccli_echo_data(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, if (out_data) { *out_data = TALLOC(mem_ctx, size); + if (!*out_data) { + return NT_STATUS_NO_MEMORY; + } memcpy(*out_data, r.data, size); } |