mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Bug in pri_find_principle
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5755 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -7337,7 +7337,9 @@ static int pri_find_principle(struct zt_pri *pri, int channel)
|
||||
|
||||
if (!PRI_EXPLICIT(channel)) {
|
||||
spanfd = pri_active_dchan_fd(pri);
|
||||
span = ioctl(spanfd, ZT_GET_PARAMS, ¶m);
|
||||
if (ioctl(spanfd, ZT_GET_PARAMS, ¶m))
|
||||
return -1;
|
||||
span = param.spanno - 1;
|
||||
}
|
||||
|
||||
for (x=0;x<pri->numchans;x++) {
|
||||
|
Reference in New Issue
Block a user