summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-05-05 17:42:32 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-05-05 17:42:32 +0800
commit3978de52c14a1e6848c3c69d81f52b24e42bd1d4 (patch)
tree204d9e0f21f5c498fa69695dfb07fa6aa2e5d059
parent7faf692cb762a81a6ce63b674cc1711e4ea39b21 (diff)
bsc_msc_ip: Do not send a ping when the timeout is negative
-rw-r--r--openbsc/src/bsc_msc_ip.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/src/bsc_msc_ip.c b/openbsc/src/bsc_msc_ip.c
index 0bb2d42b8..e4adf03bf 100644
--- a/openbsc/src/bsc_msc_ip.c
+++ b/openbsc/src/bsc_msc_ip.c
@@ -903,6 +903,9 @@ static void send_ping(void)
static void msc_ping_timeout_cb(void *data)
{
+ if (bsc_gsmnet->ping_timeout < 0)
+ return;
+
send_ping();
/* send another ping in 20 seconds */