Commit 9f500455 authored by Ghislain MARY's avatar Ghislain MARY

Add an error log for a case that should not happen.

parent 26e13ffc
......@@ -1107,6 +1107,8 @@ int rtp_session_recvfrom(RtpSession *session, bool_t is_rtp, mblk_t *m, int flag
if (recv_addr != NULL) {
memcpy(&m->recv_addr, recv_addr, sizeof(ortp_recv_addr_t));
} else {
ortp_error("Did not succeed to fill the receive address, this should not happen! [family=%d, len=%d]", from->sa_family, (int)*fromlen);
/* Store the local port in the recv_addr of the mblk_t, the address is already filled in rtp_session_rtp_recv_abstract */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment