diff options
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 14d8aafcd..bbdb9d649 100644 --- a/main/rtp.c +++ b/main/rtp.c @@ -2000,7 +2000,9 @@ int ast_rtp_settos(struct ast_rtp *rtp, int tos) void ast_rtp_new_source(struct ast_rtp *rtp) { - rtp->set_marker_bit = 1; + if (rtp) { + rtp->set_marker_bit = 1; + } return; } |