From f5aba30ade8e2357e7f8b961566a97914aaf1570 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 27 Aug 2015 16:13:49 +0200 Subject: [PATCH] dbus-proxy: Fix flags arg passed to g_socket_receive_message This is an out param, not an in param --- dbus-proxy/xdg-app-proxy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dbus-proxy/xdg-app-proxy.c b/dbus-proxy/xdg-app-proxy.c index 875b3fdf..f4c0d8b8 100644 --- a/dbus-proxy/xdg-app-proxy.c +++ b/dbus-proxy/xdg-app-proxy.c @@ -618,13 +618,14 @@ buffer_read (ProxySide *side, } else { + int flags; v.buffer = &buffer->data[buffer->pos]; v.size = buffer->size - buffer->pos; res = g_socket_receive_message (socket, NULL, &v, 1, &messages, &num_messages, - G_SOCKET_MSG_NONE, NULL, &error); + &flags, NULL, &error); if (res < 0 && g_error_matches (error, G_IO_ERROR, G_IO_ERROR_WOULD_BLOCK)) { g_error_free (error);