[PATCH 6/7] Protect 'orig_len' in |recover_unused_bytes| by DBUS_ENABLE_VERBOSE_MODE
Thomas Zimmermann
tdz at users.sourceforge.net
Tue Aug 9 19:18:31 UTC 2016
Signed-off-by: Thomas Zimmermann <tdz at users.sourceforge.net>
---
dbus/dbus-transport.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dbus/dbus-transport.c b/dbus/dbus-transport.c
index f573646..155e9e3 100644
--- a/dbus/dbus-transport.c
+++ b/dbus/dbus-transport.c
@@ -1055,13 +1055,17 @@ recover_unused_bytes (DBusTransport *transport)
{
const DBusString *bytes;
DBusString *buffer;
+#ifdef DBUS_ENABLE_VERBOSE_MODE
int orig_len;
+#endif
dbus_bool_t succeeded;
_dbus_message_loader_get_buffer (transport->loader,
&buffer);
+#ifdef DBUS_ENABLE_VERBOSE_MODE
orig_len = _dbus_string_get_length (buffer);
+#endif
_dbus_auth_get_unused_bytes (transport->auth,
&bytes);
--
2.7.4
More information about the dbus
mailing list