[Spice-commits] src/channel-webdav.c

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu May 9 12:28:51 UTC 2019


 src/channel-webdav.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 8dc7732ff092d08379e7fb90a13538440e6e4644
Author: Victor Toso <me at victortoso.com>
Date:   Mon May 6 10:08:01 2019 +0000

    channel-webdav: do not handle vmc_data message twice
    
    This is a regression from commit aae07fb in 2017-03-27 by Victor Toso
    <me at victortoso.com>. The message is handled by channel-webdav and
    should not be exposed nor handled elsewhere.
    
    Found this while inspecting the code, there is not real side effect
    as no one trying to handle port-data from webdav's channel-port.
    
    Signed-off-by: Victor Toso <victortoso at redhat.com>
    Acked-by: Frediano Ziglio <fziglio at redhat.com>

diff --git a/src/channel-webdav.c b/src/channel-webdav.c
index 8e4db1a..822fee0 100644
--- a/src/channel-webdav.c
+++ b/src/channel-webdav.c
@@ -602,8 +602,10 @@ static void spice_webdav_handle_msg(SpiceChannel *channel, SpiceMsgIn *msg)
 
     parent_class = SPICE_CHANNEL_CLASS(spice_webdav_channel_parent_class);
 
-    if (type == SPICE_MSG_SPICEVMC_DATA)
+    if (type == SPICE_MSG_SPICEVMC_DATA) {
         webdav_handle_data_msg(channel, msg);
+        return;
+    }
 
     /* The only message that we need to handle ourselves is SPICE_MSG_SPICEVMC_DATA
      * as we want to read it with spice_vmc_input/output_stream to handle


More information about the Spice-commits mailing list