]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9482 #resolve [uuid_media_3p - seg fault on 2nd attempt]
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 6 Sep 2016 15:45:50 +0000 (10:45 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 6 Sep 2016 15:45:50 +0000 (10:45 -0500)
src/switch_core_media.c

index b7e5f6f09eac6df9ec7494b97f1434788eaa7297..c301165bcb784ad20736555b077f5b86ac849969 100644 (file)
@@ -3733,6 +3733,11 @@ SWITCH_DECLARE(uint8_t) switch_core_media_negotiate_sdp(switch_core_session_t *s
 
        switch_assert(session);
 
+       if (!r_sdp) {
+               switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_WARNING, "Tried to negotiate a blank SDP?\n");
+               return 0;
+       }
+
        if (!(smh = session->media_handle)) {
                return 0;
        }