From: Brian West Date: Sun, 2 May 2010 00:45:31 +0000 (-0500) Subject: fix MODENDP-305 X-Git-Tag: git2svn-syncpoint-master~133 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37c38c19f60569b0887b758451915594f0bc71e0;p=thirdparty%2Ffreeswitch.git fix MODENDP-305 --- diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 137b7999ed..311be3b2de 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -2084,23 +2084,22 @@ static switch_status_t read_rtcp_packet(switch_rtp_t *rtp_session, switch_size_t #ifdef ENABLE_ZRTP /* ZRTP Recv */ if (bytes) { - unsigned int sbytes = (int) bytes; + unsigned int sbytes = (int) *bytes; zrtp_status_t stat = 0; stat = zrtp_process_srtcp(rtp_session->zrtp_stream, (void *) &rtp_session->rtcp_recv_msg, &sbytes); switch (stat) { case zrtp_status_ok: - bytes = sbytes; + *bytes = sbytes; break; case zrtp_status_drop: switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error: zRTP protection drop with code %d\n", stat); bytes = 0; - goto do_continue; + break; case zrtp_status_fail: switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error: zRTP protection fail with code %d\n", stat); - ret = -1; - goto end; + break; default: break; }