]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_verto] Ignore not just zero but negative frame size as well. 72/head
authorAndrey Volk <andywolk@gmail.com>
Wed, 23 Oct 2019 19:03:18 +0000 (23:03 +0400)
committerAndrey Volk <andywolk@gmail.com>
Wed, 23 Oct 2019 19:03:18 +0000 (23:03 +0400)
src/mod/endpoints/mod_verto/mod_verto.c

index f7dba78ae7759e83a2f2837d5719aa27d7a06e8e..efd76ac25c0bb24a73f76b0a3f7cfb3f85838ab1 100644 (file)
@@ -1922,7 +1922,7 @@ static void client_run(jsock_t *jsock)
                                                        int rem = 0;
                                                        int dur = 0, j = 0;
 
-                                                       if (!(size = atoi(p))) {
+                                                       if ((size = atoi(p)) <= 0) {
                                                                continue;
                                                        }