summaryrefslogtreecommitdiffstats
path: root/dbus
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2008-01-14 18:09:14 -0500
committerJohn (J5) Palmieri <johnp@redhat.com>2008-01-14 18:09:14 -0500
commitc8e29a910b33911a5d695976a78ae3705819745f (patch)
treefaa7e7fee1c8c6d186b58f4edc907aa12482f6b5 /dbus
parent93e8a272d71953267043e85c29d971cec36aa5b0 (diff)
return message loader buffer in case of OOM (FDO Bug#12666)
2008-01-14 John (J5) Palmieri <johnp@redhat.com> * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> * dbus/dbus-transport-socket.c(do_reading): return message loader buffer in case of OOM (FDO Bug#12666)
Diffstat (limited to 'dbus')
-rw-r--r--dbus/dbus-transport-socket.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dbus/dbus-transport-socket.c b/dbus/dbus-transport-socket.c
index 05e3f3ae..10b671c2 100644
--- a/dbus/dbus-transport-socket.c
+++ b/dbus/dbus-transport-socket.c
@@ -724,6 +724,10 @@ do_reading (DBusTransport *transport)
buffer))
{
_dbus_verbose ("Out of memory decoding incoming data\n");
+ _dbus_message_loader_return_buffer (transport->loader,
+ buffer,
+ _dbus_string_get_length (buffer) - orig_len);
+
oom = TRUE;
goto out;
}