From: Anthony Minessale Date: Fri, 21 Nov 2008 14:25:24 +0000 (+0000) Subject: good measure X-Git-Tag: v1.0.2~438 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3df4810b0399b2ff78059f1e94b003028c75de6c;p=thirdparty%2Ffreeswitch.git good measure git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10490 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- 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);