From add3472e9fd3729e10e334feeaf02101a3a327f3 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 6 Apr 2010 17:55:33 +0200 Subject: 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. --- openbsc/src/bsc_msc_ip.c | 2 ++ 1 file changed, 2 insertions(+) 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: -- cgit v1.2.3