diff --git a/lib/socket.c b/lib/socket.c index a5ed76c..e0c38d7 100644 --- a/lib/socket.c +++ b/lib/socket.c @@ -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) {