testbot/TestAgent: Fix handling of unknown RPCs.
Francois Gouget
fgouget at codeweavers.com
Thu Dec 6 13:58:24 CST 2012
We must set the error message otherwise it could be uninitialized.
---
testbot/src/testagentd/testagentd.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/testbot/src/testagentd/testagentd.c b/testbot/src/testagentd/testagentd.c
index 19b2f8b..a5b8e54 100644
--- a/testbot/src/testagentd/testagentd.c
+++ b/testbot/src/testagentd/testagentd.c
@@ -877,6 +877,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);
}
--
1.7.10.4
More information about the wine-patches
mailing list