mirror of https://github.com/BOINC/boinc.git
Manager: don't crash if GUI RPC returns empty reply
... though it's not clear how this could happen.
This commit is contained in:
parent
73bf3fb3f0
commit
824b3e7654
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue