The following function had to also check for session->sd != NULL... static mblk_t * make_sr(RtpSession *session){ mblk_t *cm=NULL; mblk_t *sdes=NULL;
cm=allocb(sizeof(rtcp_sr_t),0); cm->b_wptr+=rtcp_sr_init(session,cm->b_wptr,sizeof(rtcp_sr_t));
/* make a SDES packet */ if (session->sd!=NULL) /* added to remove segfault */ sdes=rtp_session_create_rtcp_sdes_packet(session); /* link them */ cm->b_cont=sdes; return cm;
}
Niklas
[Prev in Thread]
Current Thread
[Next in Thread]
[Linphone-users] Segfault in ortp-0.12.0 (rtcp.c),
Niklas Fondberg<=