From 2330b340a45415d61523b995123eff8f51377f47 Mon Sep 17 00:00:00 2001 From: Brian West Date: Tue, 12 Apr 2011 19:33:58 -0500 Subject: [PATCH] fix segfault in zrtp srtcp --- src/switch_rtp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.47.2