]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
avoiding segfault
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 8 Nov 2007 00:50:28 +0000 (00:50 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 8 Nov 2007 00:50:28 +0000 (00:50 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@323 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/openzap/mod_openzap/mod_openzap.c

index 2dd3c76662bfe8f09b27cccc75866f690194c5be..5be169488e98c6f425f6ce5be047fd13a660503f 100644 (file)
@@ -167,6 +167,7 @@ static switch_status_t tech_init(private_t *tech_pvt, switch_core_session_t *ses
        tech_pvt->read_frame.buflen = sizeof(tech_pvt->databuf);
        tech_pvt->cng_frame.data = tech_pvt->cng_databuf;
        tech_pvt->cng_frame.buflen = sizeof(tech_pvt->cng_databuf);
+       tech_pvt->cng_frame.flags = SFF_CNG;
        memset(tech_pvt->cng_frame.data, 255, tech_pvt->cng_frame.buflen);
        switch_mutex_init(&tech_pvt->mutex, SWITCH_MUTEX_NESTED, switch_core_session_get_pool(session));
        switch_mutex_init(&tech_pvt->flag_mutex, SWITCH_MUTEX_NESTED, switch_core_session_get_pool(session));