From 6322a73341337e77b6a2c18c5603e83b23204571 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Sun, 18 Feb 2007 14:33:55 +0000 Subject: [PATCH] fix typo to fix build git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4317 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_rtp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index df1f4d7c9f..bcc1cf8a7c 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -279,9 +279,9 @@ SWITCH_DECLARE(switch_port_t) switch_rtp_request_port(void) SWITCH_DECLARE(switch_status_t) switch_rtp_set_local_address(switch_rtp_t *rtp_session, char *host, switch_port_t port, const char **err) { - *err = NULL; switch_socket_t *new_sock = NULL, *old_sock = NULL; switch_status_t status = SWITCH_STATUS_FALSE; + *err = NULL; if (switch_sockaddr_info_get(&rtp_session->local_addr, host, SWITCH_UNSPEC, port, 0, rtp_session->pool) != SWITCH_STATUS_SUCCESS) { *err = "Local Address Error!"; @@ -576,7 +576,7 @@ SWITCH_DECLARE(void) switch_rtp_destroy(switch_rtp_t **rtp_session) return; } - rtp_session->ready = 0; + (*rtp_session)->ready = 0; switch_mutex_lock((*rtp_session)->flag_mutex);