diff options
author | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-08-10 03:19:07 +0000 |
---|---|---|
committer | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-08-10 03:19:07 +0000 |
commit | eb4320c96712452e9bbd083d98a7b95889be2c9e (patch) | |
tree | dcf2a587c17827c4f133731ced3bf5873c0233d6 /xpp | |
parent | cee1f1afa4053d32584af34097323e14d9cc0b54 (diff) |
Improve checking order in xpp_zap.c
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1287 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'xpp')
-rw-r--r-- | xpp/xpp_zap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xpp/xpp_zap.c b/xpp/xpp_zap.c index 5298580..3e7fc9c 100644 --- a/xpp/xpp_zap.c +++ b/xpp/xpp_zap.c @@ -626,9 +626,9 @@ void update_line_status(xpd_t *xpd, int pos, bool good) { 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); |