aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/paging.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-07-05 23:15:02 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-07-05 23:15:02 +0200
commitcb7697074eb6b11b0a3d39794b85691491cfd131 (patch)
tree405b6345f96066003516a90a20cba6c67188df91 /src/common/paging.c
parent71b216d99520b41ac899322703cd99f753a237d7 (diff)
paging: Expire paging requests after the expiration time
The paging needs to expire when the expiration time is smaller than the current time.
Diffstat (limited to 'src/common/paging.c')
-rw-r--r--src/common/paging.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/paging.c b/src/common/paging.c
index 74e807e8..41a07992 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",