diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-06-26 11:02:11 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-06-26 11:02:11 +0000 |
commit | 68c5c75b4856174ca1ec917447b4760cb1bd01b9 (patch) | |
tree | dfb332ddaeb0dabd2614de696f42aa608124ed7d /main/rtp.c | |
parent | 8aace427a56b0c675ef3858a958c01407170bf50 (diff) |
Merged revisions 125276 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r125276 | tilghman | 2008-06-26 06:01:21 -0500 (Thu, 26 Jun 2008) | 7 lines
Check for rtcp structure before trying to delete schedule.
(closes issue #12872)
Reported by: destiny6628
Patches:
20080621__bug12872.diff.txt uploaded by Corydon76 (license 14)
Tested by: destiny6628
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@125277 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/rtp.c')
-rw-r--r-- | main/rtp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/rtp.c b/main/rtp.c index 9afd0b940..146e8c093 100644 --- a/main/rtp.c +++ b/main/rtp.c @@ -2585,7 +2585,9 @@ struct ast_rtp *ast_rtp_get_bridged(struct ast_rtp *rtp) void ast_rtp_stop(struct ast_rtp *rtp) { - AST_SCHED_DEL(rtp->sched, rtp->rtcp->schedid); + if (rtp->rtcp) { + AST_SCHED_DEL(rtp->sched, rtp->rtcp->schedid); + } if (rtp->red) { AST_SCHED_DEL(rtp->sched, rtp->red->schedid); free(rtp->red); |