]> git.ipfire.org Git - thirdparty/dbus.git/commit
dbus-connection: Avoid computing a negative timeout
authorGleb Popov <6yearold@gmail.com>
Sat, 3 May 2025 14:10:23 +0000 (17:10 +0300)
committerSimon McVittie <smcv@collabora.com>
Fri, 16 May 2025 10:26:23 +0000 (10:26 +0000)
commitfdb6746d855fed34dfc88bafb353fa3c4ed8d905
treeaee0dfae7aa888b00e7452e386c2a94e6a3945b0
parent5035f4bda699950cd9546173f5e89223ba43a88f
dbus-connection: Avoid computing a negative timeout

Getting into the `if (timeout == NULL)` block means that
timeout_milliseconds == -1, so it doesn't make sense to do arithmetic on it.

Pass -1 instead of a nonsensical value in this case
dbus/dbus-connection.c