diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-07-05 23:15:02 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-07-05 23:15:02 +0200 |
commit | cb7697074eb6b11b0a3d39794b85691491cfd131 (patch) | |
tree | 405b6345f96066003516a90a20cba6c67188df91 /src/common | |
parent | 71b216d99520b41ac899322703cd99f753a237d7 (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')
-rw-r--r-- | src/common/paging.c | 2 |
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", |