Bug in pri_find_principle

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5755 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2-netsec
Matthew Fredrickson 21 years ago
parent 840a2ba5b4
commit 91bfc89301

@ -7337,7 +7337,9 @@ static int pri_find_principle(struct zt_pri *pri, int channel)
if (!PRI_EXPLICIT(channel)) { if (!PRI_EXPLICIT(channel)) {
spanfd = pri_active_dchan_fd(pri); spanfd = pri_active_dchan_fd(pri);
span = ioctl(spanfd, ZT_GET_PARAMS, &param); if (ioctl(spanfd, ZT_GET_PARAMS, &param))
return -1;
span = param.spanno - 1;
} }
for (x=0;x<pri->numchans;x++) { for (x=0;x<pri->numchans;x++) {

Loading…
Cancel
Save