From 2840c6d68b352fa51ad45faedd1fffee189d0e48 Mon Sep 17 00:00:00 2001 From: Alexandr Anikin Date: Wed, 15 Oct 2014 08:39:12 +0000 Subject: [PATCH] : Resolve module reference leak caused by reserved sessions chan_ooh323: fix rtptimeout general value checking correct condition to check rtptimeout in [general] config section ASTERISK-24393 #close Reported by: Dmitry Melekhov Tested by: Dmitry Melekhov Patches: ASTERISK-24393.patch git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@425547 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- addons/chan_ooh323.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/chan_ooh323.c b/addons/chan_ooh323.c index e6248c887c..04190c8413 100644 --- a/addons/chan_ooh323.c +++ b/addons/chan_ooh323.c @@ -2724,7 +2724,7 @@ int reload_config(int reload) gContext); } else if (!strcasecmp(v->name, "rtptimeout")) { gRTPTimeout = atoi(v->value); - if (gRTPTimeout <= 0) + if (gRTPTimeout < 0) gRTPTimeout = 60; } else if (!strcasecmp(v->name, "tos")) { if (sscanf(v->value, "%30i", &format) == 1)