aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/rrlp.c
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2009-12-19 12:38:10 +0100
committerHarald Welte <laforge@gnumonks.org>2010-01-07 10:37:40 +0100
commitef24dff2a22c907f08a24b19773dde5ce20ba5d6 (patch)
tree82ef2b092b47ae2d5db6b198fd34ff881a9d9e63 /openbsc/src/rrlp.c
parent65542c7f597c5c94b16904108056d3c99de1a8cc (diff)
[signal] Differentiate paging success from expiration in SS_PAGING
This is useful information to know and actually fixes a segfault in rllp.c where lchan is accessed even tough it could be NULL in case of failure. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'openbsc/src/rrlp.c')
-rw-r--r--openbsc/src/rrlp.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/openbsc/src/rrlp.c b/openbsc/src/rrlp.c
index d4665d570..35044518c 100644
--- a/openbsc/src/rrlp.c
+++ b/openbsc/src/rrlp.c
@@ -89,14 +89,12 @@ static int paging_sig_cb(unsigned int subsys, unsigned int signal,
struct paging_signal_data *psig_data = signal_data;
switch (signal) {
- case S_PAGING_COMPLETED:
- /* paging might have "completed' unsucessfully,
- * in this case we don't have a lchan */
- if (!psig_data->lchan)
- break;
+ case S_PAGING_SUCCEEDED:
/* A subscriber has attached. */
send_rrlp_req(psig_data->lchan);
break;
+ case S_PAGING_EXPIRED:
+ break;
}
return 0;
}