[Asterisk-cvs] asterisk/channels Makefile,1.37.2.3,1.37.2.4 chan_sip.c,1.292.2.21,1.292.2.22
markster at lists.digium.com
markster at lists.digium.com
Tue Mar 23 00:10:21 CST 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv8364/channels
Modified Files:
Tag: v1-0_stable
Makefile chan_sip.c
Log Message:
Minor SIP cleanups for valgrind, finally close the coffin on IAX1 and take it out of the normal build process.
Index: Makefile
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/Makefile,v
retrieving revision 1.37.2.3
retrieving revision 1.37.2.4
diff -u -d -r1.37.2.3 -r1.37.2.4
--- Makefile 21 Mar 2004 21:24:31 -0000 1.37.2.3
+++ Makefile 23 Mar 2004 05:06:40 -0000 1.37.2.4
@@ -16,13 +16,19 @@
USE_MYSQL_FRIENDS=0
USE_SIP_MYSQL_FRIENDS=0
-CHANNEL_LIBS=chan_modem.so chan_iax.so chan_sip.so \
+CHANNEL_LIBS=chan_modem.so chan_sip.so \
chan_modem_aopen.so \
chan_modem_bestdata.so chan_modem_i4l.so \
chan_agent.so chan_mgcp.so chan_iax2.so \
chan_local.so chan_skinny.so
#
+# If you really want IAX1 uncomment the following, but it is
+# unmaintained
+#
+#CHANNEL_LIBS+=chan_iax.so
+
+#
# If you really want VoFR you can have it :-P
#
#CHANNEL_LIBS+=chan_vofr
@@ -160,6 +166,7 @@
install: all
for x in $(CHANNEL_LIBS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done
+ if ! [ -f chan_iax.so ]; then rm -f $(DESTDIR)$(MODULES_DIR)/chan_iax.so ; fi
depend: .depend
Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.292.2.21
retrieving revision 1.292.2.22
diff -u -d -r1.292.2.21 -r1.292.2.22
--- chan_sip.c 21 Mar 2004 21:24:31 -0000 1.292.2.21
+++ chan_sip.c 23 Mar 2004 05:06:40 -0000 1.292.2.22
@@ -2619,7 +2619,7 @@
char a2[1024] = "";
int x;
struct sockaddr_in dest;
- struct sockaddr_in vdest;
+ struct sockaddr_in vdest = { 0, };
/* XXX We break with the "recommendation" and send our IP, in order that our
peer doesn't have to gethostbyname() us XXX */
len = 0;
@@ -3659,7 +3659,7 @@
char a1_hash[256];
char a2_hash[256];
char resp[256];
- char resp_hash[256];
+ char resp_hash[256]="";
char tmp[256] = "";
char *c;
char *z;
More information about the svn-commits
mailing list