diff options
author | Volker Lendecke <vl@samba.org> | 2014-07-17 14:08:58 +0000 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2014-07-21 18:00:10 +0200 |
commit | 1603d2df592fb1861467e02de4bcadcc6772f162 (patch) | |
tree | a7c782b67bcf513b541f7ebf7558cc9010535cff /source4 | |
parent | 658b7ec4eef5227f7b0e7470faae043509dac24d (diff) | |
download | samba-1603d2df592fb1861467e02de4bcadcc6772f162.tar.gz samba-1603d2df592fb1861467e02de4bcadcc6772f162.tar.xz samba-1603d2df592fb1861467e02de4bcadcc6772f162.zip |
messaging4: Add NULL check to irpc_add_name
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/messaging/messaging.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/lib/messaging/messaging.c b/source4/lib/messaging/messaging.c index e7b1e9d6cd..5def9d1f73 100644 --- a/source4/lib/messaging/messaging.c +++ b/source4/lib/messaging/messaging.c @@ -940,6 +940,9 @@ NTSTATUS irpc_add_name(struct imessaging_context *msg_ctx, const char *name) } msg_ctx->names = str_list_add(msg_ctx->names, name); + if (msg_ctx->names == NULL) { + return NT_STATUS_NO_MEMORY; + } talloc_steal(msg_ctx, msg_ctx->names); return status; |