From 3df4810b0399b2ff78059f1e94b003028c75de6c Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 21 Nov 2008 14:25:24 +0000 Subject: [PATCH] good measure git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10490 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_rtp.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 6dbc94b3eb..3735a56b3a 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -1007,8 +1007,11 @@ SWITCH_DECLARE(void) switch_rtp_break(switch_rtp_t *rtp_session) if (rtp_session->sock_input) { char o[4] = "DOH"; - switch_size_t len = sizeof(o); - + switch_size_t len; + + len = sizeof(o); + switch_socket_sendto(rtp_session->sock_input, rtp_session->local_addr, 0, (void *) o, &len); + len = sizeof(o); switch_socket_sendto(rtp_session->sock_input, rtp_session->local_addr, 0, (void *) o, &len); } switch_mutex_unlock(rtp_session->flag_mutex);