From 824b3e76543b834ae912d47e3f11e21d73bb0380 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 6 Jul 2017 01:10:26 -0700 Subject: [PATCH] Manager: don't crash if GUI RPC returns empty reply ... though it's not clear how this could happen. --- lib/gui_rpc_client.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/gui_rpc_client.cpp b/lib/gui_rpc_client.cpp index f470db65de..b5af3c62df 100644 --- a/lib/gui_rpc_client.cpp +++ b/lib/gui_rpc_client.cpp @@ -333,6 +333,7 @@ int RPC_CLIENT::get_reply(char*& mbuf) { MFILE mf; int n; + mf.puts(""); // make sure buffer is non-NULL while (1) { n = recv(sock, buf, 8192, 0); if (n <= 0) return ERR_READ;