From 49d7fd81a0152b6382a40eb8b1a1e61c0c6cbfa2 Mon Sep 17 00:00:00 2001 From: Vic Lee Date: Sun, 10 Jul 2011 17:16:51 +0800 Subject: [PATCH] libfreerdp-utils/svc_plugin: reset stream position after complete data received. --- libfreerdp-utils/svc_plugin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libfreerdp-utils/svc_plugin.c b/libfreerdp-utils/svc_plugin.c index e2344f78d..b030a4e87 100644 --- a/libfreerdp-utils/svc_plugin.c +++ b/libfreerdp-utils/svc_plugin.c @@ -140,6 +140,7 @@ static void svc_plugin_process_received(rdpSvcPlugin* plugin, void* pData, uint3 } /* the stream ownership is passed to the callback who is responsible for freeing it. */ plugin->priv->data_in = NULL; + stream_set_pos(data_in, 0); plugin->receive_callback(plugin, data_in); } }