[asterisk-commits] oej: branch 1.6.0 r132824 - in /branches/1.6.0: ./ channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jul 23 03:19:00 CDT 2008


Author: oej
Date: Wed Jul 23 03:18:59 2008
New Revision: 132824

URL: http://svn.digium.com/view/asterisk?view=rev&rev=132824
Log:
Merged revisions 132823 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
r132823 | oej | 2008-07-23 10:13:07 +0200 (Ons, 23 Jul 2008) | 8 lines

Well, the content of a channel variable may be longer than the size of a pointer...
Thanks, eliel!

Reported by: eliel
Patches: 
      chan_siptrunk.SIPPEER.patch uploaded by eliel (license 64)
(closes issue #13135)

........

Modified:
    branches/1.6.0/   (props changed)
    branches/1.6.0/channels/chan_sip.c

Propchange: branches/1.6.0/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.0/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/channels/chan_sip.c?view=diff&rev=132824&r1=132823&r2=132824
==============================================================================
--- branches/1.6.0/channels/chan_sip.c (original)
+++ branches/1.6.0/channels/chan_sip.c Wed Jul 23 03:18:59 2008
@@ -14403,7 +14403,7 @@
 		chanvar = strsep(&chanvar, "]");
 		for (v = peer->chanvars ; v ; v = v->next)
 			if (strcasecmp(v->name, chanvar) == 0)
-				ast_copy_string(buf, v->value, sizeof(buf));
+				ast_copy_string(buf, v->value, len);
 	} else  if (!strncasecmp(colname, "codec[", 6)) {
 		char *codecnum;
 		int index = 0, codec = 0;




More information about the asterisk-commits mailing list