]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix segfault in zrtp srtcp
authorBrian West <brian@freeswitch.org>
Wed, 13 Apr 2011 00:33:58 +0000 (19:33 -0500)
committerBrian West <brian@freeswitch.org>
Wed, 13 Apr 2011 00:34:04 +0000 (19:34 -0500)
src/switch_rtp.c

index e59810b05b719f044dc025b3251f35438829d7af..15424b315319d728d422dcdac6251f3fd256727b 100644 (file)
@@ -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;