]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10356: [core] Do not blindly print error string from rtp/stun packets
authorBrian West <brian@freeswitch.org>
Thu, 15 Jun 2017 14:46:22 +0000 (09:46 -0500)
committerMike Jerris <mike@jerris.com>
Tue, 11 Jul 2017 16:51:09 +0000 (12:51 -0400)
src/switch_rtp.c

index 3adc72d1d67e7764545e103ca42d71e5a76e3013..d9fdaf00001f24107d7d39b77eb98dbc08953f74 100644 (file)
@@ -971,11 +971,10 @@ static void handle_ice(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice, void *d
                                switch_stun_error_code_t *err = (switch_stun_error_code_t *) attr->value;
                                uint32_t code = (err->code * 100) + err->number;
 
-                               switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(rtp_session->session), SWITCH_LOG_WARNING, "%s got %s stun binding response %u %s\n",
+                               switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(rtp_session->session), SWITCH_LOG_WARNING, "%s got %s stun binding response %u\n",
                                                                  rtp_session_name(rtp_session),
                                                                  rtp_type(rtp_session),
-                                                                 code,
-                                                                 err->reason
+                                                                 code
                                                                  );
 
                                if ((ice->type & ICE_VANILLA) && code == 487) {