[svn-commits] branch crichter/0.2.1 - r8337 /team/crichter/0.2.1/channels/chan_misdn.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Fri Jan 20 07:35:01 MST 2006


Author: crichter
Date: Fri Jan 20 08:34:59 2006
New Revision: 8337

URL: http://svn.digium.com/view/asterisk?rev=8337&view=rev
Log:
fixed potential segfaults

Modified:
    team/crichter/0.2.1/channels/chan_misdn.c

Modified: team/crichter/0.2.1/channels/chan_misdn.c
URL: http://svn.digium.com/view/asterisk/team/crichter/0.2.1/channels/chan_misdn.c?rev=8337&r1=8336&r2=8337&view=diff
==============================================================================
--- team/crichter/0.2.1/channels/chan_misdn.c (original)
+++ team/crichter/0.2.1/channels/chan_misdn.c Fri Jan 20 08:34:59 2006
@@ -1343,7 +1343,7 @@
 	struct chan_list *p;
 
 	
-	if (!ast || ! MISDN_ASTERISK_PVT(ast)) return -1;
+	if (!ast || ! MISDN_ASTERISK_TECH_PVT(ast)) return -1;
 	p = MISDN_ASTERISK_TECH_PVT(ast) ;
 	
 	chan_misdn_trace_call(ast,1,"*->I: EVENT_ANSWER\n");
@@ -1396,7 +1396,7 @@
 {
 	struct chan_list *p;
 	
-	if (!ast || ! MISDN_ASTERISK_PVT(ast)) return -1;
+	if (!ast || ! MISDN_ASTERISK_TECH_PVT(ast)) return -1;
 	p = MISDN_ASTERISK_TECH_PVT(ast) ;
 	
 
@@ -1456,7 +1456,7 @@
 {
 	struct chan_list *p;
 	
-	if (!ast || ! MISDN_ASTERISK_PVT(ast)) return -1;
+	if (!ast || ! MISDN_ASTERISK_TECH_PVT(ast)) return -1;
 	p = MISDN_ASTERISK_TECH_PVT(ast) ;
 	
 	chan_misdn_log(1, p->bc?p->bc->port:0, "* IND: Got Fixup State:%s Holded:%d L3id:%x\n", misdn_get_ch_state(p), p->holded, p->l3id);
@@ -1472,7 +1472,7 @@
 {
 	struct chan_list *p;
 	
-	if (!ast || ! MISDN_ASTERISK_PVT(ast)) return -1;
+	if (!ast || ! MISDN_ASTERISK_TECH_PVT(ast)) return -1;
 	p = MISDN_ASTERISK_TECH_PVT(ast) ;
 
 	chan_misdn_log(1, p->bc?p->bc->port:0, "* IND : Got Transfer %s\n",dest);
@@ -1486,7 +1486,7 @@
 	struct chan_list *p;
 
   
-	if (!ast || ! MISDN_ASTERISK_PVT(ast)) {
+	if (!ast || ! MISDN_ASTERISK_TECH_PVT(ast)) {
 		ast_log(LOG_WARNING, "Returnded -1 in misdn_indication\n");
 		return -1;
 	}
@@ -2440,7 +2440,7 @@
 			close(ch->pipe[0]);
 			close(ch->pipe[1]);
 			
-			if (ast && MISDN_ASTERISK_PVT(ast)) {
+			if (ast && MISDN_ASTERISK_TECH_PVT(ast)) {
 				chan_misdn_log(1, bc->port, "* RELEASING CHANNEL pid:%d ctx:%s dad:%s oad:%s state: %s\n",bc?bc->pid:-1, ast->context, ast->exten,AST_CID_P(ast),misdn_get_ch_state(ch));
 				chan_misdn_log(3, bc->port, " --> * State Down\n");
 				/* copy cause */
@@ -2498,7 +2498,7 @@
 					chan_misdn_log(2,  bc->port, "* --> Queue Hangup\n");
 	
 					
-					if (ast && MISDN_ASTERISK_PVT(ast)) {
+					if (ast && MISDN_ASTERISK_TECH_PVT(ast)) {
 						ast_queue_hangup(ast);
 					} else {
 						chan_misdn_log (0,  bc->port, "!! Not really queued!\n");



More information about the svn-commits mailing list