Manager: don't crash if GUI RPC returns empty reply

... though it's not clear how this could happen.
This commit is contained in:
David Anderson 2017-07-06 01:10:26 -07:00
parent 73bf3fb3f0
commit 824b3e7654
1 changed files with 1 additions and 0 deletions

View File

@ -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;