]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
I assure you they're not null
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 14 Jan 2009 15:28:17 +0000 (15:28 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 14 Jan 2009 15:28:17 +0000 (15:28 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11190 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_glue.c

index 7921da58190d216cb23ff6b7490ac33c7a1b4477..bcaecf7f7f944daec5de3715f220406276a590b2 100644 (file)
@@ -1654,6 +1654,9 @@ switch_status_t sofia_glue_tech_set_codec(private_object_t *tech_pvt, int force)
                switch_goto_status(SWITCH_STATUS_FALSE, end);
        }
 
+       switch_assert(tech_pvt->read_codec.implementation);
+       switch_assert(tech_pvt->write_codec.implementation);
+
        tech_pvt->read_impl = *tech_pvt->read_codec.implementation;
        tech_pvt->write_impl = *tech_pvt->write_codec.implementation;