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:
Matthew Fredrickson
2005-05-23 17:07:32 +00:00
parent 840a2ba5b4
commit 91bfc89301

View File

@@ -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, &param);
if (ioctl(spanfd, ZT_GET_PARAMS, &param))
return -1;
span = param.spanno - 1;
}
for (x=0;x<pri->numchans;x++) {