diff --git a/main/features.c b/main/features.c index becb6eae7341fc9f344d5efe4e06c0000ff8c3b7..9f1455185a580ebfd08c57a53b1ee8e578561515 100644 --- a/main/features.c +++ b/main/features.c @@ -3120,7 +3120,9 @@ int ast_bridge_call(struct ast_channel *chan,struct ast_channel *peer,struct ast chan_ptr = ast_channel_unref(chan_ptr); } /* new channel */ - ast_cdr_specialized_reset(new_peer_cdr, 0); + if (new_peer_cdr) { + ast_cdr_specialized_reset(new_peer_cdr, 0); + } } else { ast_cdr_specialized_reset(peer_cdr, 0); /* nothing changed, reset the peer_cdr */ }