[asterisk-commits] irroot: branch irroot/distrotech-customers r318991 - /team/irroot/distrotech-...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat May 14 11:17:14 CDT 2011


Author: irroot
Date: Sat May 14 11:17:09 2011
New Revision: 318991

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=318991
Log:
Patch applied incorectly fixed


Modified:
    team/irroot/distrotech-customers/channels/chan_sip.c

Modified: team/irroot/distrotech-customers/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/irroot/distrotech-customers/channels/chan_sip.c?view=diff&rev=318991&r1=318990&r2=318991
==============================================================================
--- team/irroot/distrotech-customers/channels/chan_sip.c (original)
+++ team/irroot/distrotech-customers/channels/chan_sip.c Sat May 14 11:17:09 2011
@@ -6416,6 +6416,10 @@
 	struct sip_pvt *p = ast->tech_pvt;
 	int res = 0;
 
+	if (!p) {
+		return res;
+	}
+
 	sip_pvt_lock(p);
 	switch (ast_test_flag(&p->flags[0], SIP_DTMF)) {
 	case SIP_DTMF_INBAND:
@@ -6443,10 +6447,6 @@
 {
 	struct sip_pvt *p = ast->tech_pvt;
 	int res = 0;
-
-	if (!p) {
-		return res;
-	}
 
 	sip_pvt_lock(p);
 	switch (ast_test_flag(&p->flags[0], SIP_DTMF)) {




More information about the asterisk-commits mailing list