diff --git a/libs/freetdm/src/ftdm_io.c b/libs/freetdm/src/ftdm_io.c index c43d694dee..495be78ff1 100644 --- a/libs/freetdm/src/ftdm_io.c +++ b/libs/freetdm/src/ftdm_io.c @@ -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;