]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_amqp] Properly parse out heartbeat parameter 61/head
authorcdosoftei <ciprian.dosoftei@gmail.com>
Tue, 15 Oct 2019 16:37:47 +0000 (12:37 -0400)
committercdosoftei <ciprian.dosoftei@gmail.com>
Tue, 15 Oct 2019 16:37:47 +0000 (12:37 -0400)
src/mod/event_handlers/mod_amqp/mod_amqp_connection.c

index 2d8ef8c0882fcba361e887b7dfe0b0ee7098d306..7f56c9579c1424bd49e9e3e6b03676014beaf8d3 100644 (file)
@@ -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;