[zaptel-commits] tzafrir: trunk r1287 - /trunk/xpp/xpp_zap.c

zaptel-commits at lists.digium.com zaptel-commits at lists.digium.com
Wed Aug 9 20:19:07 MST 2006


Author: tzafrir
Date: Wed Aug  9 22:19:07 2006
New Revision: 1287

URL: http://svn.digium.com/view/zaptel?rev=1287&view=rev
Log:
Improve checking order in xpp_zap.c

Modified:
    trunk/xpp/xpp_zap.c

Modified: trunk/xpp/xpp_zap.c
URL: http://svn.digium.com/view/zaptel/trunk/xpp/xpp_zap.c?rev=1287&r1=1286&r2=1287&view=diff
==============================================================================
--- trunk/xpp/xpp_zap.c (original)
+++ trunk/xpp/xpp_zap.c Wed Aug  9 22:19:07 2006
@@ -626,9 +626,9 @@
 {
 	struct zt_chan	*chan;
 
+	BUG_ON(!xpd);
 	if(!SPAN_REGISTERED(xpd))
 		return;
-	BUG_ON(!xpd);
 	chan = &xpd->chans[pos];
 	if(good)
 		zt_hooksig(chan, ZT_RXSIG_OFFHOOK);



More information about the zaptel-commits mailing list