diff options
author | Harald Welte <laforge@netfilter.org> | 2009-12-20 09:48:28 +0100 |
---|---|---|
committer | Harald Welte <laforge@netfilter.org> | 2009-12-20 13:20:54 +0100 |
commit | 0b7b61c6b79eb2e69a9418af611e67bdbc70b353 (patch) | |
tree | bdf347d8440c86d23e99426092b3c46ba8c7e514 /openbsc/src/rrlp.c | |
parent | 5e68183a201ab92f29cd2467df5209f7b351a66d (diff) |
fix segfault in rrlp code in case of unsuccessful paging
PAGING_COMPLETED can be signalled without an active lchan in
case it was unable to page the repsective subscriber.
Diffstat (limited to 'openbsc/src/rrlp.c')
-rw-r--r-- | openbsc/src/rrlp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/src/rrlp.c b/openbsc/src/rrlp.c index 60ce750ad..d4665d570 100644 --- a/openbsc/src/rrlp.c +++ b/openbsc/src/rrlp.c @@ -90,6 +90,10 @@ static int paging_sig_cb(unsigned int subsys, unsigned int signal, 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; /* A subscriber has attached. */ send_rrlp_req(psig_data->lchan); break; |