[Spice-devel] [PATCH RFC 08/12] Check client is using unix sockets in dcc_gl_draw_item_new

Frediano Ziglio fziglio at redhat.com
Fri Jul 15 13:49:33 UTC 2016


Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/dcc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/server/dcc.c b/server/dcc.c
index 45c3ca8..d5cfe4c 100644
--- a/server/dcc.c
+++ b/server/dcc.c
@@ -590,7 +590,8 @@ RedPipeItem *dcc_gl_draw_item_new(RedChannelClient *rcc, void *data, int num)
     RedGlDrawItem *item = spice_new(RedGlDrawItem, 1);
     spice_return_val_if_fail(item != NULL, NULL);
 
-    if (!red_channel_client_test_remote_cap(rcc, SPICE_DISPLAY_CAP_GL_SCANOUT)) {
+    if (!reds_stream_is_plain_unix(rcc->stream) ||
+        !red_channel_client_test_remote_cap(rcc, SPICE_DISPLAY_CAP_GL_SCANOUT)) {
         spice_printerr("FIXME: client does not support GL scanout");
         red_channel_client_disconnect(rcc);
         return NULL;
-- 
2.7.4



More information about the Spice-devel mailing list