[Asterisk-Dev] Stable: Sanity check before hangup

Stefan Gofferje stefan at gofferje.homelinux.org
Sun Oct 30 03:35:12 MST 2005


Hi folks,

when testing chan_sccp, I came to strange segfaults when hanging up from
voicemail and queues. It seems that inserting two lines for a sanity
check into function free_translation fix the issue. The patch is from
Sergio. Maybe somebody wants to check if this is valid for 1.2 too?

static void free_translation(struct ast_channel *clone)
{
    if (!clone || !clone->pvt)  /*patch by Sergio*/
        return;                 /*patch by Sergio*/

    if (clone->pvt->writetrans)
        ast_translator_free_path(clone->pvt->writetrans);


Regards,
Stefan


-- 
  (o_   Stefan Gofferje            | SCLT, MCP
  //\   Reg'd Linux User #247167   | VCP #2263
  V_/_  Heckler & Koch - the original point and click interface




More information about the asterisk-dev mailing list