From fdfce79edbf6edf55ab0dad00287819f6b429aee Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 12 Feb 2018 17:32:09 +0100 Subject: [PATCH] connection: return false on read error Return false to indicate that there is no more data to read or else we add the -1 to buffer_size and things go wrong.. --- src/modules/module-protocol-native/connection.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/module-protocol-native/connection.c b/src/modules/module-protocol-native/connection.c index 1de9fcecb..3469088b2 100644 --- a/src/modules/module-protocol-native/connection.c +++ b/src/modules/module-protocol-native/connection.c @@ -150,6 +150,7 @@ static bool refill_buffer(struct pw_protocol_native_connection *conn, struct buf continue; if (errno != EAGAIN || errno != EWOULDBLOCK) goto recv_error; + return false; } break; }