paging: Expire paging requests after the expiration time

The paging needs to expire when the expiration time is smaller
than the current time.
This commit is contained in:
Holger Hans Peter Freyther 2012-07-05 23:15:02 +02:00
parent 71b216d995
commit cb7697074e
1 changed files with 1 additions and 1 deletions

View File

@ -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",