1
0
Fork 0

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:
James Turner 2021-06-08 17:46:50 +01:00
parent 6a7de07fda
commit 8618e55774

View file

@ -868,7 +868,12 @@ static int iax_xmit_frame(struct iax_frame *f)
f->datalen - sizeof(struct ast_iax2_full_hdr));
}
#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,
IAX_SOCKOPTS, f->transfer ?
(struct sockaddr *)&(f->session->transfer) :