This patch created automatically Index: rtp.c =================================================================== --- rtp.c (revision 10461) +++ rtp.c (working copy) @@ -435,6 +435,11 @@ static struct ast_frame *f; struct rtpPayloadType rtpPT; + if( !rtp ) { + ast_log(LOG_ERROR, "ast_rtp_read(): called with rtp == NULL\n"); + return &null_frame; + } + len = sizeof(sin); /* Cache where the header will go */