Hi,
Massimo Nuvoli:
> > ast_mutex_lock(&ast_chan->lock);
> > +
> > + if (!ast_chan)
> > + {
> > + ast_log(LOG_WARNING, "Unexpexted ast_chan NULL\n");
> > + return;
> > + }
> > The second hunk, testing ast_chan again after ast_mutex_lock(), does make
> > no sense whatsoever. You have a few other places where you do this.
>
> I found sometime after the mutex lock the ast_chan is NULL.
> I think while stopped by the mutex the chan is closed so this is the
> cause. Maybe i am wrong.. :-)
>
Umm, ast_chan is a local variable. It can't just transform itself to
zero, unless something else is going very very wrong.
--
Matthias Urlichs | {M:U} IT Design @ m-u-it.de | [EMAIL PROTECTED]
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
- -
'What good is a candle at noonday?'
-- Terry Pratchett (Sourcery)
signature.asc
Description: Digital signature
_______________________________________________ Visdn-hackers mailing list [email protected] https://mailman.uli.it/mailman/listinfo/visdn-hackers
