[asterisk-commits] oej: branch 1.4 r47744 - in /branches/1.4: ./ channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Nov 16 09:52:00 MST 2006


Author: oej
Date: Thu Nov 16 10:51:59 2006
New Revision: 47744

URL: http://svn.digium.com/view/asterisk?view=rev&rev=47744
Log:
Don't fixup if there's nothing to fixup 

Modified:
    branches/1.4/   (props changed)
    branches/1.4/channels/chan_sip.c

Propchange: branches/1.4/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.

Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=47744&r1=47743&r2=47744
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Thu Nov 16 10:51:59 2006
@@ -3506,6 +3506,11 @@
 		return -1;
 	}
 	p = newchan->tech_pvt;
+
+	if (!p) {
+		ast_log(LOG_WARNING, "No pvt after masquerade. Strange things may happen\n");
+		return -1;
+	}
 
 	ast_mutex_lock(&p->lock);
 	append_history(p, "Masq", "Old channel: %s\n", oldchan->name);



More information about the asterisk-commits mailing list