handle zero expiration correctly
authorMichal Voců <michal@ruk.cuni.cz>
Tue, 15 Jan 2008 15:37:17 +0000 (15:37 +0000)
committerMichal Voců <michal@ruk.cuni.cz>
Tue, 15 Jan 2008 15:37:17 +0000 (15:37 +0000)
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