From: Matthew Nicholson Date: Thu, 9 Jul 2009 21:32:31 +0000 (+0000) Subject: Fix mbl_fixup() in chan_mobile to update newchan->tech_pvt instead of oldchan. X-Git-Tag: 11.0.0-beta1~4519 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f9d62e3c324c8833a62296a1adaab1937a34e084;p=thirdparty%2Fasterisk.git Fix mbl_fixup() in chan_mobile to update newchan->tech_pvt instead of oldchan. (closes issue #15299) Reported by: nikkk git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@205700 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/addons/chan_mobile.c b/addons/chan_mobile.c index 95aed48fdc..20c30f06a2 100644 --- a/addons/chan_mobile.c +++ b/addons/chan_mobile.c @@ -1100,10 +1100,10 @@ static int mbl_write(struct ast_channel *ast, struct ast_frame *frame) static int mbl_fixup(struct ast_channel *oldchan, struct ast_channel *newchan) { - struct mbl_pvt *pvt = oldchan->tech_pvt; + struct mbl_pvt *pvt = newchan->tech_pvt; if (!pvt) { - ast_debug(1, "fixup failed, no pvt on oldchan\n"); + ast_debug(1, "fixup failed, no pvt on newchan\n"); return -1; }