From: Anthony Minessale Date: Fri, 11 Aug 2017 18:05:07 +0000 (-0500) Subject: FS-10573: [freeswitch-core] Native recording causes segfault #resolve X-Git-Tag: v1.8.0~304 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3937624c4ff4e1cc78f0b4de3b34b6a77f1c705;p=thirdparty%2Ffreeswitch.git FS-10573: [freeswitch-core] Native recording causes segfault #resolve --- diff --git a/src/switch_ivr_async.c b/src/switch_ivr_async.c index de50fc2831..cce09104d8 100644 --- a/src/switch_ivr_async.c +++ b/src/switch_ivr_async.c @@ -1230,7 +1230,7 @@ static switch_bool_t record_callback(switch_media_bug_t *bug, void *user_data, s switch_core_session_get_read_impl(session, &rh->read_impl); - if (switch_core_file_has_video(rh->fh, SWITCH_TRUE)) { + if (rh->fh && switch_core_file_has_video(rh->fh, SWITCH_TRUE)) { switch_core_media_bug_set_media_params(bug, &rh->fh->mm); }