Skip to content
Snippets Groups Projects
Commit 65a025e9 authored by zuul's avatar zuul Committed by Gerrit Code Review
Browse files

Merge "chan_sip: Allow DTLS to be disabled when reloading." into 13

parents 76971d4c d91f61f0
No related branches found
No related tags found
No related merge requests found
......@@ -31104,6 +31104,8 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v_head
firstpass = 0;
} else {
ast_format_cap_remove_by_type(peer->caps, AST_MEDIA_TYPE_UNKNOWN);
ast_rtp_dtls_cfg_free(&peer->dtls_cfg);
memset(&peer->dtls_cfg, 0, sizeof(peer->dtls_cfg));
}
} else {
if (!(peer = ao2_t_alloc(sizeof(*peer), sip_destroy_peer_fn, "allocate a peer struct"))) {
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment