[PATCH 6/7] Protect 'orig_len' in |recover_unused_bytes| by DBUS_ENABLE_VERBOSE_MODE
Thomas Zimmermann <[email protected]>
| Newsgroups | gmane.comp.freedesktop.dbus |
|---|---|
| Message-ID | <[email protected]> |
Signed-off-by: Thomas Zimmermann <[email protected]> --- 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 _______________________________________________ dbus mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dbus