Francois Gouget : testbot/TestAgent: Fix handling of unknown RPCs.

Alexandre Julliard julliard at winehq.org
Thu Dec 6 16:24:24 CST 2012


Module: tools
Branch: master
Commit: a4c232a4d7faafc4f43dce2036b43b154d00abae
URL:    http://source.winehq.org/git/tools.git/?a=commit;h=a4c232a4d7faafc4f43dce2036b43b154d00abae

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Thu Dec  6 20:58:24 2012 +0100

testbot/TestAgent: Fix handling of unknown RPCs.

We must set the error message otherwise it could be uninitialized.

---

 testbot/src/testagentd/testagentd.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/testbot/src/testagentd/testagentd.c b/testbot/src/testagentd/testagentd.c
index edb1a24..bb50d91 100644
--- a/testbot/src/testagentd/testagentd.c
+++ b/testbot/src/testagentd/testagentd.c
@@ -862,6 +862,7 @@ static void do_unknown(SOCKET client, uint32_t id)
     if (recv_list_size(client, &argc))
         skip_entries(client, argc);
 
+    set_status(ST_ERROR, "unknown RPC %s", rpc_name(id));
     send_error(client);
 }
 




More information about the wine-cvs mailing list