From: Brian West Date: Wed, 13 Apr 2011 00:33:58 +0000 (-0500) Subject: fix segfault in zrtp srtcp X-Git-Tag: v1.2-rc1~118^2~130 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2330b340a45415d61523b995123eff8f51377f47;p=thirdparty%2Ffreeswitch.git fix segfault in zrtp srtcp --- diff --git a/src/switch_rtp.c b/src/switch_rtp.c index e59810b05b..15424b3153 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -2670,10 +2670,11 @@ static switch_status_t read_rtcp_packet(switch_rtp_t *rtp_session, switch_size_t 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; + *bytes = 0; break; case zrtp_status_fail: switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error: zRTP protection fail with code %d\n", stat); + *bytes = 0; break; default: break;