FGCom: attempt to avoid crashes seen by Sentry
This is a wild guess, but shouldn’t do any harm and might give some data about what is going wrong.
This commit is contained in:
parent
6a7de07fda
commit
8618e55774
1 changed files with 6 additions and 1 deletions
7
3rdparty/iaxclient/lib/libiax2/src/iax.c
vendored
7
3rdparty/iaxclient/lib/libiax2/src/iax.c
vendored
|
@ -868,7 +868,12 @@ static int iax_xmit_frame(struct iax_frame *f)
|
||||||
f->datalen - sizeof(struct ast_iax2_full_hdr));
|
f->datalen - sizeof(struct ast_iax2_full_hdr));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
/* Send the frame raw */
|
if (!f->session) {
|
||||||
|
IAXERROR "No session in iax_xmit_frame");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Send the frame raw */
|
||||||
res = f->session->sendto(netfd, (const char *) f->data, f->datalen,
|
res = f->session->sendto(netfd, (const char *) f->data, f->datalen,
|
||||||
IAX_SOCKOPTS, f->transfer ?
|
IAX_SOCKOPTS, f->transfer ?
|
||||||
(struct sockaddr *)&(f->session->transfer) :
|
(struct sockaddr *)&(f->session->transfer) :
|
||||||
|
|
Loading…
Add table
Reference in a new issue