From bded1433cfb3306e351218b17b62ee8cded9793c Mon Sep 17 00:00:00 2001 From: Scott James Remnant Date: Mon, 11 May 2009 22:42:32 +0100 Subject: [PATCH 07/11] 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 --- bus/expirelist.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/bus/expirelist.c b/bus/expirelist.c index d718d9f..038cfee 100644 --- a/bus/expirelist.c +++ b/bus/expirelist.c @@ -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); -- 1.6.0.4