]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
freetdm: fix for calling print_hex_dump with invalid string length
authorDavid Yat Sin <dyatsin@sangoma.com>
Tue, 22 Feb 2011 19:59:57 +0000 (14:59 -0500)
committerDavid Yat Sin <dyatsin@sangoma.com>
Tue, 22 Feb 2011 20:00:40 +0000 (15:00 -0500)
libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_trace.c

index 9feb5c8c43ec552e8499a2b4064b6fd4f2943415..50c7cf74ab7563c6db771548c5a491ca946a6df1 100644 (file)
@@ -833,8 +833,9 @@ static ftdm_status_t sngisdn_get_frame_info(uint8_t *data, uint32_t data_len, ft
                        //ftdm_log(FTDM_LOG_DEBUG, "Decoded IE:%s\n", get_code_2_str(ie_id, dcodQ931IEIDTable));
                }
                if (!bchan_no) {
+                       uint32_t tmp_len = 0;
                        char tmp[1000];
-                       print_hex_dump(tmp, 0, data, 0, data_len);                      
+                       print_hex_dump(tmp, &tmp_len, data, 0, data_len);                       
                        ftdm_log(FTDM_LOG_WARNING, "Failed to determine b-channel on SETUP message\n%s\n", tmp);
                }
        }