[Asterisk-cvs] asterisk/channels chan_sip.c,1.446,1.447
markster at lists.digium.com
markster at lists.digium.com
Mon Jul 12 22:48:17 CDT 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv13895/channels
Modified Files:
chan_sip.c
Log Message:
Fix silly little seg
Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.446
retrieving revision 1.447
diff -u -d -r1.446 -r1.447
--- chan_sip.c 13 Jul 2004 02:20:44 -0000 1.446
+++ chan_sip.c 13 Jul 2004 02:34:02 -0000 1.447
@@ -2421,7 +2421,7 @@
reg->expire = -1;
reg->timeout = -1;
reg->refresh = default_expiry;
- reg->portno = htons(atoi(porta));
+ reg->portno = porta ? htons(atoi(porta)) : 0;
reg->callid_valid = 0;
reg->ocseq = 101;
ast_mutex_lock(®l.lock);
More information about the svn-commits
mailing list