[Asterisk-cvs] asterisk/channels chan_sip.c,1.377,1.378
markster at lists.digium.com
markster at lists.digium.com
Sun May 9 16:36:35 CDT 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv11305/channels
Modified Files:
chan_sip.c
Log Message:
Fix accidental strlen_zero mistransfer (bug #1592)
Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.377
retrieving revision 1.378
diff -u -d -r1.377 -r1.378
--- chan_sip.c 9 May 2004 19:39:23 -0000 1.377
+++ chan_sip.c 9 May 2004 20:46:18 -0000 1.378
@@ -5020,11 +5020,11 @@
/* Try getting the "signal=" part */
if (ast_strlen_zero(c = get_sdp(req, "Signal")) && ast_strlen_zero(c = get_sdp(req, "d"))) {
- strncpy(buf, c, sizeof(buf) - 1);
- } else {
ast_log(LOG_WARNING, "Unable to retrieve DTMF signal from INFO message from %s\n", p->callid);
transmit_response(p, "200 OK", req); /* Should return error */
return;
+ } else {
+ strncpy(buf, c, sizeof(buf) - 1);
}
if (p->owner) { /* PBX call */
More information about the svn-commits
mailing list