Fix rpc_read_from_socket (no idea how it worked before)
parent
1703d4479d
commit
338e176320
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue