merge from 3.1:
authorMiloš Mulač <mulac@civ.zcu.cz>
Mon, 28 Jan 2008 09:14:40 +0000 (09:14 +0000)
committerMiloš Mulač <mulac@civ.zcu.cz>
Mon, 28 Jan 2008 09:14:40 +0000 (09:14 +0000)
 handle zero expiration correctly

org.glite.lb.logger/src/queue_thread.c

index b75c501..20c25e7 100644 (file)
@@ -34,7 +34,7 @@ int
 cmp_expires(struct server_msg *msg, void *data)
 {
   time_t *t = (time_t*)data;
-  return msg->expires < *t;
+  return (msg->expires > 0) && (msg->expires < *t);
 }
 
 static