aboutsummaryrefslogtreecommitdiffstats
path: root/rtp.c
diff options
context:
space:
mode:
Diffstat (limited to 'rtp.c')
-rwxr-xr-xrtp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rtp.c b/rtp.c
index 79799fac9..c069b85bb 100755
--- a/rtp.c
+++ b/rtp.c
@@ -342,7 +342,7 @@ struct ast_frame *ast_rtcp_read(struct ast_rtp *rtp)
unsigned int rtcpdata[1024];
char iabuf[INET_ADDRSTRLEN];
- if (!rtp->rtcp)
+ if (!rtp || !rtp->rtcp)
return &null_frame;
len = sizeof(sin);