[svn-commits] mnicholson: branch 1.6.2 r989 - /branches/1.6.2/channels/chan_mobile.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Jul 9 16:36:58 CDT 2009


Author: mnicholson
Date: Thu Jul  9 16:36:54 2009
New Revision: 989

URL: http://svn.asterisk.org/svn-view/asterisk-addons?view=rev&rev=989
Log:
Fix mbl_fixup() in chan_mobile to update newchan->tech_pvt instead of oldchan.

(closes issue #15299)
Reported by: nikkk

Modified:
    branches/1.6.2/channels/chan_mobile.c

Modified: branches/1.6.2/channels/chan_mobile.c
URL: http://svn.asterisk.org/svn-view/asterisk-addons/branches/1.6.2/channels/chan_mobile.c?view=diff&rev=989&r1=988&r2=989
==============================================================================
--- branches/1.6.2/channels/chan_mobile.c (original)
+++ branches/1.6.2/channels/chan_mobile.c Thu Jul  9 16:36:54 2009
@@ -1098,10 +1098,10 @@
 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;
 	}
 




More information about the svn-commits mailing list