Fix issue where timeouts can overflow.
authorScott James Remnant <scott@ubuntu.com>
Mon, 11 May 2009 21:41:49 +0000 (22:41 +0100)
committerScott James Remnant <scott@ubuntu.com>
Thu, 28 May 2009 09:47:33 +0000 (11:47 +0200)
commit1faa92114f6489d286ad4cebe5e91b2145a4f7d1
treeb585661e92b12df87a5bde71eccb6a31673b6ce4
parentce0d932d9be5adec22943dd7b268bd4a165ada64
Fix issue where timeouts can overflow.

* dbus/dbus-connection.c (_dbus_connection_block_pending_call): Rework
  the timeout math so instead of calculating an end time, which may
  overflow, we instead calculate the elapsed time which is always
  smaller than the boundaries.

Signed-off-by: Scott James Remnant <scott@ubuntu.com>
dbus/dbus-connection.c