From: cdosoftei Date: Tue, 15 Oct 2019 16:37:47 +0000 (-0400) Subject: [mod_amqp] Properly parse out heartbeat parameter X-Git-Tag: v1.10.2^2~88^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F61%2Fhead;p=thirdparty%2Ffreeswitch.git [mod_amqp] Properly parse out heartbeat parameter --- diff --git a/src/mod/event_handlers/mod_amqp/mod_amqp_connection.c b/src/mod/event_handlers/mod_amqp/mod_amqp_connection.c index 2d8ef8c088..7f56c9579c 100644 --- a/src/mod/event_handlers/mod_amqp/mod_amqp_connection.c +++ b/src/mod/event_handlers/mod_amqp/mod_amqp_connection.c @@ -220,7 +220,7 @@ switch_status_t mod_amqp_connection_create(mod_amqp_connection_t **conn, switch_ if (interval && interval > 0) { port = interval; } - } else if (!strncmp(var, "heartbeat", 4)) { + } else if (!strncmp(var, "heartbeat", 9)) { int interval = atoi(val); if (interval && interval > 0) { heartbeat = interval;