On Wed, Feb 15, 2017 at 11:31:58AM +0000, Frediano Ziglio wrote:
> Avoid possible dangling pointers.


Acked-by: Christophe Fergeau <cferg...@redhat.com>

> 
> Signed-off-by: Frediano Ziglio <fzig...@redhat.com>
> ---
>  server/red-channel-client.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/server/red-channel-client.c b/server/red-channel-client.c
> index 9ab22e4..32db186 100644
> --- a/server/red-channel-client.c
> +++ b/server/red-channel-client.c
> @@ -1277,6 +1277,7 @@ static void 
> red_channel_client_handle_incoming(RedChannelClient *rcc)
>              if (bytes_read == -1) {
>                  red_channel_client_release_msg_buf(rcc, msg_type, msg_size,
>                                                     buffer->msg);
> +                buffer->msg = NULL;
>                  red_channel_client_disconnect(rcc);
>                  return;
>              }
> @@ -1296,6 +1297,7 @@ static void 
> red_channel_client_handle_incoming(RedChannelClient *rcc)
>              red_channel_client_release_msg_buf(rcc,
>                                                 msg_type, msg_size,
>                                                 buffer->msg);
> +            buffer->msg = NULL;
>              red_channel_client_disconnect(rcc);
>              return;
>          }
> -- 
> 2.9.3
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to