diff options
author | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-08-10 03:16:36 +0000 |
---|---|---|
committer | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-08-10 03:16:36 +0000 |
commit | cee1f1afa4053d32584af34097323e14d9cc0b54 (patch) | |
tree | eb32a18cf3cea1293f3340ccaca0dcb9a5d05af8 /xpp/xpp_zap.c | |
parent | 7d33e1eca2cc193bd0127816c7d487e3ef73e5bb (diff) |
Bugfix: should not call zaptel for unregistered XPD's.
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1286 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'xpp/xpp_zap.c')
-rw-r--r-- | xpp/xpp_zap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xpp/xpp_zap.c b/xpp/xpp_zap.c index e992144..5298580 100644 --- a/xpp/xpp_zap.c +++ b/xpp/xpp_zap.c @@ -626,6 +626,8 @@ void update_line_status(xpd_t *xpd, int pos, bool good) { struct zt_chan *chan; + if(!SPAN_REGISTERED(xpd)) + return; BUG_ON(!xpd); chan = &xpd->chans[pos]; if(good) |