mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-19 07:48:32 +00:00
freetdm: do not write to io dump if is not enabled
This commit is contained in:
1 parent
1e3a86310f
commit
b156f4d03f
1 file changed
+4
@@ -91,6 +91,10 @@ static void write_chan_io_dump(ftdm_channel_t *fchan, ftdm_io_dump_t *dump, char
|
||||
int windex = dump->windex;
|
||||
int avail = dump->size - windex;
|
||||
|
||||
if (!dump->buffer) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (dlen > avail) {
|
||||
int diff = dlen - avail;
|
||||
|
||||
|
||||
Reference in new issue
Block a user