Fix rpc_read_from_socket (no idea how it worked before)

master
Vitaliy Filippov 2022-02-12 13:57:31 +03:00
parent 1703d4479d
commit 338e176320
1 changed files with 2 additions and 1 deletions

View File

@ -328,6 +328,7 @@ rpc_read_from_socket(struct rpc_context *rpc)
return 0;
}
again:
do {
/* Read record marker,
* 4 bytes at the beginning of every pdu.
@ -378,7 +379,7 @@ rpc_read_from_socket(struct rpc_context *rpc)
if (rpc->inpos == 4) {
/* We have just read the header and there is likely
* more data available */
continue;
goto again;
}
if (rpc->inpos == pdu_size) {