From cb7697074eb6b11b0a3d39794b85691491cfd131 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 5 Jul 2012 23:15:02 +0200 Subject: [PATCH] paging: Expire paging requests after the expiration time The paging needs to expire when the expiration time is smaller than the current time. --- src/common/paging.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/paging.c b/src/common/paging.c index 74e807e8e..41a07992c 100644 --- a/src/common/paging.c +++ b/src/common/paging.c @@ -401,7 +401,7 @@ int paging_gen_msg(struct paging_state *ps, uint8_t *out_buf, struct gsm_time *g continue; /* check if we can expire the paging record, * or if we need to re-queue it */ - if (pr[i]->expiration_time >= now) { + if (pr[i]->expiration_time <= now) { talloc_free(pr[i]); ps->num_paging--; LOGP(DPAG, LOGL_INFO, "Removed paging record, queue_len=%u\n",