mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
fix a very occasional core dump in chan_skinny found by wedhorn.
(issue #13948) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@158688 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -4682,7 +4682,8 @@ static int handle_onhook_message(struct skinny_req *req, struct skinnysession *s
|
||||
l->name, d->name, sub->callid);
|
||||
}
|
||||
}
|
||||
if ((l->hookstate == SKINNY_ONHOOK) && (AST_LIST_NEXT(sub, list) && !AST_LIST_NEXT(sub, list)->rtp)) {
|
||||
/* The bit commented below gives a very occasional core dump. */
|
||||
if ((l->hookstate == SKINNY_ONHOOK) && (AST_LIST_NEXT(sub, list) /*&& !AST_LIST_NEXT(sub, list)->rtp*/)) {
|
||||
do_housekeeping(s);
|
||||
}
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user