FS-9271: [mod_conference] fix segfault trying to record a canvas that does not exist

This commit is contained in:
Michael Jerris committed 2016-06-15 18:36:12 -04:00
1 parent c0499fbb22
commit 2475c2686f
1 file changed
+4
@@ -2529,6 +2529,10 @@ switch_status_t conference_api_sub_record(conference_obj_t *conference, switch_s
if (id == 0 && conference->canvases[0]) id = 1;
if (id > conference->canvas_count) {
id = 1;
}
if (id > 0) {
stream->write_function(stream, "Record file %s canvas %d\n", argv[2], id);
} else {