From 9d0f7534e3f4109814af29d0547970b28f732211 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Thu, 6 Oct 2016 13:04:06 +0200 Subject: [PATCH] Fixed use after free. --- channels/rdpsnd/client/rdpsnd_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/channels/rdpsnd/client/rdpsnd_main.c b/channels/rdpsnd/client/rdpsnd_main.c index f5f7a03..90e2d63 100644 --- a/channels/rdpsnd/client/rdpsnd_main.c +++ b/channels/rdpsnd/client/rdpsnd_main.c @@ -1447,10 +1447,11 @@ static VOID VCAPITYPE rdpsnd_virtual_channel_init_event(LPVOID pInitHandle, "rdpsnd_virtual_channel_event_disconnected failed with error %lu!", error); rdpsnd_virtual_channel_event_terminated(plugin); + plugin = NULL; break; } - if (error && plugin->rdpcontext) + if (error && plugin && plugin->rdpcontext) setChannelError(plugin->rdpcontext, error, "rdpsnd_virtual_channel_init_event reported an error"); } -- 2.7.4