[Asterisk-cvs] asterisk/channels chan_h323.c,1.65,1.66

jeremy at lists.digium.com jeremy at lists.digium.com
Fri Jul 9 05:06:48 CDT 2004


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv10267

Modified Files:
	chan_h323.c 
Log Message:
fix seg fault condition

Index: chan_h323.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_h323.c,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -d -r1.65 -r1.66
--- chan_h323.c	30 Jun 2004 16:56:51 -0000	1.65
+++ chan_h323.c	9 Jul 2004 08:52:35 -0000	1.66
@@ -862,7 +862,7 @@
 
 	strtok_r(host, "/", &(h323id));
 		
-	if (*h323id) {
+	if (h323id && !ast_strlen_zero(h323id)) {
 		h323_set_id(h323id);
 	}
 		
@@ -877,10 +877,11 @@
 	p->capability = capability;
 	
 	if (p->dtmfmode) {
-		if (p->dtmfmode & H323_DTMF_RFC2833)
+		if (p->dtmfmode & H323_DTMF_RFC2833) {
 			p->nonCodecCapability |= AST_RTP_DTMF;
-		else
+		} else {
 			p->nonCodecCapability &= ~AST_RTP_DTMF;
+		}
 	}
 	/* pass on our preferred codec to the H.323 stack */
 	h323_set_capability(format, dtmfmode);




More information about the svn-commits mailing list