]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10573: [freeswitch-core] Native recording causes segfault #resolve
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 11 Aug 2017 18:05:07 +0000 (13:05 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 11 Aug 2017 18:05:11 +0000 (13:05 -0500)
src/switch_ivr_async.c

index de50fc283166e5dacdf03443b111f4bc879c3bcf..cce09104d85d9b8a4c29fe475270595254110bf5 100644 (file)
@@ -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);
                        }