mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-04-20 21:10:41 +02:00
Explicitly check for zero time fields.
* bus/expirelist.c (do_expiration_with_current_time): If the item added
time fields are both zero, always expire.
Signed-off-by: Scott James Remnant <scott@ubuntu.com>
(cherry picked from commit d33cfec625)
This commit is contained in:
parent
5de455c0bb
commit
e296855e41
1 changed files with 2 additions and 1 deletions
|
|
@ -157,7 +157,8 @@ do_expiration_with_current_time (BusExpireList *list,
|
|||
item->added_tv_usec,
|
||||
tv_sec, tv_usec);
|
||||
|
||||
if (elapsed >= (double) list->expire_after)
|
||||
if (((item->added_tv_sec == 0) && (item->added_tv_usec == 0)) ||
|
||||
(elapsed >= (double) list->expire_after))
|
||||
{
|
||||
_dbus_verbose ("Expiring an item %p\n", item);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue