summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzuul <zuul@gerrit.asterisk.org>2017-03-01 11:43:55 -0600
committerGerrit Code Review <gerrit2@gerrit.digium.api>2017-03-01 11:43:55 -0600
commit65a025e9fa3053bfa8fc927f346450893659ba3b (patch)
tree79a814d95461c4069c608c6b36e15b5c19c23c5c
parent76971d4c4a58b613ad77fb310e0da409673e12be (diff)
parentd91f61f0b5bbc05f952ef3aa0f1d4fe67c4c9b04 (diff)
Merge "chan_sip: Allow DTLS to be disabled when reloading." into 13
-rw-r--r--channels/chan_sip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 77ea5f2a2..9a5d6c5e3 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -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"))) {