diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-08-03 18:11:27 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-08-03 18:11:27 +0800 |
commit | d8ba591c49766c744cfd1436270e8eedd1c28fa5 (patch) | |
tree | b2079cdcaf2ca9586ae30270ef5adaf923ed04e3 | |
parent | 87c8f182ccaa688ca13e07c214914a4c20560df6 (diff) |
grace: Do not crash if there is no rf ctl
Accept the new connection if there is no rf ctl. Fixes a segfault.
-rw-r--r-- | openbsc/src/bsc_msc_grace.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/src/bsc_msc_grace.c b/openbsc/src/bsc_msc_grace.c index 91dfcba32..f8aed7ba9 100644 --- a/openbsc/src/bsc_msc_grace.c +++ b/openbsc/src/bsc_msc_grace.c @@ -26,6 +26,8 @@ int bsc_grace_allow_new_connection(struct gsm_network *network) { + if (!network->rf) + return 1; return network->rf->policy == S_RF_ON; } |