[libpri-commits] rmudgett: branch rmudgett/t312 r2225 - /team/rmudgett/t312/q931.c

SVN commits to the libpri project libpri-commits at lists.digium.com
Fri Feb 25 23:34:44 CST 2011


Author: rmudgett
Date: Fri Feb 25 23:34:42 2011
New Revision: 2225

URL: http://svnview.digium.com/svn/libpri?view=rev&rev=2225
Log:
Count subcalls correctly.

Modified:
    team/rmudgett/t312/q931.c

Modified: team/rmudgett/t312/q931.c
URL: http://svnview.digium.com/svn/libpri/team/rmudgett/t312/q931.c?view=diff&rev=2225&r1=2224&r2=2225
==============================================================================
--- team/rmudgett/t312/q931.c (original)
+++ team/rmudgett/t312/q931.c Fri Feb 25 23:34:42 2011
@@ -4404,8 +4404,8 @@
 				/* Destroy any slaves that may be present as well. */
 				slavesleft = 0;
 				for (i = 0; i < ARRAY_LEN(cur->subcalls); ++i) {
-					++slavesleft;
 					if (cur->subcalls[i]) {
+						++slavesleft;
 						q931_destroy_subcall(cur, i);
 					}
 				}




More information about the libpri-commits mailing list