int callno = f->callno;
/* Called with iaxsl held */
+ if (!iaxs[callno])
+ return -1;
if (option_debug > 2 && iaxdebug)
ast_log(LOG_DEBUG, "Sending %d on %d/%d to %s:%d\n", f->ts, callno, iaxs[callno]->peercallno, ast_inet_ntoa(iabuf, sizeof(iabuf), iaxs[callno]->addr.sin_addr), ntohs(iaxs[callno]->addr.sin_port));
/* Don't send if there was an error, but return error instead */
ast_log(LOG_WARNING, "Call number = %d\n", callno);
return -1;
}
- if (!iaxs[callno])
- return -1;
if (iaxs[callno]->error)
return -1;
if (f->transfer) {