summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-06 17:55:33 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-04-06 17:55:33 +0200
commitadd3472e9fd3729e10e334feeaf02101a3a327f3 (patch)
tree137ea4aaa31d801a366b6bf8bbe52783fb71b1ff
parent33b0bee457d335266f91e4c2876639c5f6f97940 (diff)
bsc_msc_ip.c: Do not attempt to disconnect when not connected
This is fixing a segfault due calling bsc_unregsiter_fd twice without being in the list.
-rw-r--r--openbsc/src/bsc_msc_ip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/src/bsc_msc_ip.c b/openbsc/src/bsc_msc_ip.c
index 9412627a2..4b7af742e 100644
--- a/openbsc/src/bsc_msc_ip.c
+++ b/openbsc/src/bsc_msc_ip.c
@@ -958,6 +958,8 @@ static void signal_handler(int signal)
talloc_report_full(tall_bsc_ctx, stderr);
break;
case SIGUSR2:
+ if (!msc_con->is_connected)
+ return;
bsc_msc_lost(msc_con);
break;
default: